Module exposing: TabsRoot, TabsList, TabsTrigger, TabsContent, Tabs
// Source: https://github.com/AFK-surf/open-agent | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import * as TabsGroup from '@radix-ui/react-tabs';
import clsx from 'clsx';
import { forwardRef, type RefAttributes } from 'react';
import * as styles from './tabs.css';
export const TabsRoot = forwardRef<
HTMLDivElement,
TabsGroup.TabsProps & RefAttributes<HTMLDivElement>
>(({ children, className, ...props }, ref) => {
return (
<TabsGroup.Root
{...props}
ref={ref}
className={clsx(className, styles.tabsRoot)}
>
{children}
</TabsGroup.Root>
);
});
TabsRoot.displayName = 'TabsRoot';
export const TabsList = forwardRef<
HTMLDivElement,
T
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key