mljr-ui · showcase

Color Swatch

Single color preview tile. Use ColorSwatchGroup for palettes. Supports square and circle shapes.

primitive color-swatch

Usage

primitive.ColorSwatch(primitive.ColorSwatchProps{
    Color: "#f28d1d",
    Label: "#f28d1d",
})
primitive.ColorSwatchGroup(
    primitive.ColorSwatch(primitive.ColorSwatchProps{Color: "var(--primary)"}),
    primitive.ColorSwatch(primitive.ColorSwatchProps{Color: "var(--accent)"}),
)