| 55 | } |
| 56 | |
| 57 | function TabsTab({ className, ...props }: TabsPrimitive.Tab.Props) { |
| 58 | return ( |
| 59 | <TabsPrimitive.Tab |
| 60 | className={cn( |
| 61 | "[&_svg]:-mx-0.5 flex shrink-0 grow cursor-pointer items-center justify-center whitespace-nowrap rounded-md border border-transparent font-medium text-base outline-none transition-[color,background-color,box-shadow] focus-visible:ring-2 focus-visible:ring-ring data-disabled:pointer-events-none data-disabled:opacity-64 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", |
| 62 | "hover:text-muted-foreground data-active:text-foreground", |
| 63 | "h-9 gap-1.5 px-[calc(--spacing(2.5)-1px)] sm:h-8", |
| 64 | "data-[orientation=vertical]:w-full data-[orientation=vertical]:justify-start", |
| 65 | className, |
| 66 | )} |
| 67 | data-slot="tabs-trigger" |
| 68 | {...props} |
| 69 | /> |
| 70 | ); |
| 71 | } |
| 72 | |
| 73 | function TabsPanel({ className, ...props }: TabsPrimitive.Panel.Props) { |
| 74 | return ( |