Function
Button
({
variant = "secondary",
className,
}: {
variant?: "primary" | "secondary";
className?: string;
})
Source from the content-addressed store, hash-verified
| 48 | } |
| 49 | |
| 50 | function Button({ |
| 51 | variant = "secondary", |
| 52 | className, |
| 53 | }: { |
| 54 | variant?: "primary" | "secondary"; |
| 55 | className?: string; |
| 56 | }) { |
| 57 | const height = variant === "primary" ? "h-4" : "h-1.5"; |
| 58 | const bgColor = |
| 59 | variant === "primary" |
| 60 | ? "bg-linear-to-b from-(--btn-from) to-(--btn-to)" |
| 61 | : "bg-muted-foreground/20"; |
| 62 | return <div className={cn(height, "w-7 rounded-sm", bgColor, className)} />; |
| 63 | } |
| 64 | |
| 65 | // Standalone Card component for thumbnails - independent from registry Card |
| 66 | function Card({ |
Callers
nothing calls this directly
Tested by
no test coverage detected