Atoms / Swatch

Swatch

A small square of colour that tells a project or a label apart.

import { Swatch } from "@forgeron/ui";
/01 → Projects
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
PropTypeDefaultDescription
colorstring—Any CSS colour.
childrenReactNode—The name next to it.
classNamestring—Extra classes.