A button component with 7 variants (default, outline, secondary, destructive, destructive-outline, ghost, link), 10 sizes (xs–xl + icon sizes), loading state with built-in spinner, and render-as-child support via asChild prop.
import { Button } from "@/components/ui/component"; export default function ButtonDefaultDemo() { return ( <div className="flex min-h-screen w-full items-center justify-center bg-background p-8"> <Button>Button</Button> </div> ); }
Part of coss — browse the full library on 21st.dev.