Add Chip component
This commit is contained in:
parent
36d554c16b
commit
ede319da59
1 changed files with 17 additions and 0 deletions
17
src/components/Chip.astro
Normal file
17
src/components/Chip.astro
Normal 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>
|
Reference in a new issue