Add Chip component

This commit is contained in:
Korbs 2024-07-25 00:51:21 -04:00
parent 36d554c16b
commit ede319da59

17
src/components/Chip.astro Normal file
View file

@ -0,0 +1,17 @@
---
const {
Text,
Color
} = Astro.props
---
<p style={'background: ' + Color + ';'} class="chip">{Text}</p>
<style lang="scss">
.chip {
font-size: 12px;
border-radius: 3rem;
padding: 4px 12px;
width: max-content;
}
</style>