Spaces:
Running
Running
Download src/components/ui/tabs.tsx from evalstate/mcp-webcam: direct link, hf CLI and curl.
- Browser
- Download file 1.69 kB
-
https://huggingface.co/spaces/evalstate/mcp-webcam/resolve/main/src/components/ui/tabs.tsx
- Command line
-
hf download hf://spaces/evalstate/mcp-webcam/src/components/ui/tabs.tsx
-
curl -L -o tabs.tsx https://huggingface.co/spaces/evalstate/mcp-webcam/resolve/main/src/components/ui/tabs.tsx
1.69 kB
| import * as React from 'react'; | |
| import * as TabsPrimitive from '@radix-ui/react-tabs'; | |
| import { cn } from '@/lib/utils'; | |
| export const Tabs = TabsPrimitive.Root; | |
| export const TabsList = React.forwardRef< | |
| React.ComponentRef<typeof TabsPrimitive.List>, | |
| React.ComponentPropsWithoutRef<typeof TabsPrimitive.List> | |
| >(({ className, ...props }, ref) => ( | |
| <TabsPrimitive.List | |
| ref={ref} | |
| className={cn( | |
| 'inline-flex items-center gap-1 rounded-lg border border-line bg-panel-2/70 p-0.5 text-muted', | |
| className, | |
| )} | |
| {...props} | |
| /> | |
| )); | |
| TabsList.displayName = TabsPrimitive.List.displayName; | |
| export const TabsTrigger = React.forwardRef< | |
| React.ComponentRef<typeof TabsPrimitive.Trigger>, | |
| React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> | |
| >(({ className, ...props }, ref) => ( | |
| <TabsPrimitive.Trigger | |
| ref={ref} | |
| className={cn( | |
| 'inline-flex items-center justify-center gap-1.5 rounded-md px-2.5 py-1 text-xs font-medium whitespace-nowrap transition-colors cursor-pointer hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-push/40 data-[state=active]:bg-panel data-[state=active]:text-fg data-[state=active]:shadow-xs', | |
| className, | |
| )} | |
| {...props} | |
| /> | |
| )); | |
| TabsTrigger.displayName = TabsPrimitive.Trigger.displayName; | |
| export const TabsContent = React.forwardRef< | |
| React.ComponentRef<typeof TabsPrimitive.Content>, | |
| React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content> | |
| >(({ className, ...props }, ref) => ( | |
| <TabsPrimitive.Content | |
| ref={ref} | |
| className={cn('focus-visible:outline-none', className)} | |
| {...props} | |
| /> | |
| )); | |
| TabsContent.displayName = TabsPrimitive.Content.displayName; | |