Color Swatch Size

PreviousNext

color-swatch-size-demo

Docs
intentuipage

Preview

Loading preview…
components/docs/colors/color-swatch/color-swatch-size-demo.tsx
"use client"

import { ColorSwatch } from "@/components/ui/color-swatch"

export default function ColorSwatchSizeDemo() {
  return (
    <ColorSwatch
      className="[--color-swatch-size:--spacing(16)]"
      aria-label="Current color"
      color="#0d6efd"
    />
  )
}

Installation

npx shadcn@latest add @intentui/color-swatch-size-demo

Usage

Usage varies by registry entry. Refer to the registry docs or source files below for details.