mirror of
https://github.com/tabler/tabler.git
synced 2026-08-08 04:12:26 +04:00
8962710163
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
21 lines
467 B
Plaintext
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>
|