import { Tabs as BaseTabs } from "@base-ui/react/tabs";
import type { ComponentProps, ReactNode } from "react";
import cn from "~/utils/cn";
export interface TabsProps {
label: string;
className?: string;
defaultValue?: string | number;
value?: string | number;
onValueChange?: (value: string | number) => void;
children: ReactNode;
}
function Tabs({ label, className, children, ...props }: TabsProps) {
return (
{children}
);
}
function TabList({ children, className }: { children: ReactNode; className?: string }) {
return (
{children}
);
}
function Tab({
value,
children,
className,
...props
}: ComponentProps & { className?: string }) {
return (
{children}
);
}
function Panel({
value,
children,
className,
...props
}: ComponentProps & { className?: string }) {
return (
{children}
);
}
export { Tabs, TabList as TabsList, Tab as TabsTab, Panel as TabsPanel };