24 lines
894 B
TypeScript
24 lines
894 B
TypeScript
'use client';
|
|
|
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
import { cn } from '@/lib/utils';
|
|
|
|
export const Tabs = TabsPrimitive.Root;
|
|
|
|
export function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>) {
|
|
return <TabsPrimitive.List className={cn('inline-flex rounded-2xl bg-[#090a0f] p-0.5', className)} {...props} />;
|
|
}
|
|
|
|
export function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>) {
|
|
return (
|
|
<TabsPrimitive.Trigger
|
|
className={cn('rounded-[15px] px-9 py-3 text-sm font-semibold text-[#9a9dab] data-[state=active]:bg-[#22232c] data-[state=active]:text-white', className)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>) {
|
|
return <TabsPrimitive.Content className={cn('mt-4', className)} {...props} />;
|
|
}
|