Swatch
A small square of colour that tells a project or a label apart.
import { Swatch } from "@forgeron/ui";Q4 closingSupplier portalFire safetyOdoo bridge
import { Swatch } from "@forgeron/ui";
export default function Projects() {
return (
<div style={{ display: "grid", gap: 10 }}>
<Swatch color="#ff4f1f">Q4 closing</Swatch>
<Swatch color="#3ddc84">Supplier portal</Swatch>
<Swatch color="#ffb020">Fire safety</Swatch>
<Swatch color="#6e8bff">Odoo bridge</Swatch>
</div>
);
}API → Props
| Prop | Type | Default | Description |
|---|---|---|---|
color | string | — | Any CSS colour. |
children | ReactNode | — | The name next to it. |
className | string | — | Extra classes. |