1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-08 04:12:26 +04:00
Files
tabler/docs/components/Colors.astro
T

21 lines
467 B
Plaintext

---
interface Props {
colors: Record<string, { prop: string; title: string }>
}
const { colors }: Props = Astro.props
---
<div class="row row-cols-4 row-cols-md-6 g-3 g-md-4">
{
Object.values(colors).map((color) => {
return (
<div class="col-2 text-center">
<div class="p-6 rounded border" style={{ backgroundColor: `var(${color.prop})` }} />
<div class="small">{color.title}</div>
</div>
)
})
}
</div>