MCPcopy Create free account
hub / github.com/cosscom/coss / Button

Function Button

apps/ui/components/category-thumbnails.tsx:50–63  ·  view source on GitHub ↗
({
  variant = "secondary",
  className,
}: {
  variant?: "primary" | "secondary";
  className?: string;
})

Source from the content-addressed store, hash-verified

48}
49
50function 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
66function Card({

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected