MCPcopy Create free account
hub / github.com/R44VC0RP/opencode.cafe / TabsTrigger

Function TabsTrigger

components/ui/tabs.tsx:39–60  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.ComponentProps<typeof TabsPrimitive.Trigger>)

Source from the content-addressed store, hash-verified

37}
38
39function TabsTrigger({
40 className,
41 ...props
42}: React.ComponentProps<typeof TabsPrimitive.Trigger>) {
43 return (
44 <TabsPrimitive.Trigger
45 data-slot="tabs-trigger"
46 className={cn(
47 "inline-flex items-center justify-center whitespace-nowrap py-4 text-sm font-medium transition-all",
48 "border-b-2 border-transparent",
49 "text-[var(--color-text-weak)]",
50 "hover:text-[var(--color-text-strong)]",
51 "data-[state=active]:border-[var(--color-bg-strong)]",
52 "data-[state=active]:text-[var(--color-text-strong)]",
53 "disabled:pointer-events-none disabled:opacity-50",
54 "outline-none",
55 className
56 )}
57 {...props}
58 />
59 )
60}
61
62function TabsContent({
63 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected