Components
Loading preview...
A visual preview of a color value with accessibility support.
npx shadcn@latest add https://21st.dev/r/hero_ui/heroui-color-swatch"use client";
import { ColorSwatch } from "@/components/ui/heroui-color-swatch";
export default function ColorSwatchDefault() {
return (
<div className="flex min-h-screen w-full items-center justify-center overflow-hidden bg-background p-8">
<div className="flex items-center gap-3">
<ColorSwatch aria-label="Blue" color="#0485F7" />
<ColorSwatch aria-label="Red" color="#EF4444" />
<ColorSwatch aria-label="Amber" color="#F59E0B" />
<ColorSwatch aria-label="Green" color="#10B981" />
<ColorSwatch aria-label="Fuchsia" color="#D946EF" />
</div>
</div>
);
}
export { ColorSwatchDefault };