A visual preview of a color value with accessibility support.
"use client"; import { ColorSwatch } from "@/components/ui/heroui-color-swatch"; export default function ColorSwatchTransparency() { 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="100% opacity" color="#0485F7" /> <ColorSwatch aria-label="75% opacity" color="#0485F7BF" /> <ColorSwatch aria-label="50% opacity" color="#0485F780" /> <ColorSwatch aria-label="25% opacity" color="#0485F740" /> <ColorSwatch aria-label="0% opacity" color="#0485F700" /> </div> </div> ); } export { ColorSwatchTransparency };