import * as React from 'react'; import { Primitive } from '@radix-ui/react-primitive'; import * as RovingFocusGroup from '@radix-ui/react-roving-focus'; type Scope = { [scopeName: string]: React.Context[]; } | undefined; type ScopeHook = (scope: Scope) => { [__scopeProp: string]: Scope; }; interface CreateScope { scopeName: string; (): ScopeHook; } declare const createTabsScope: CreateScope; type RovingFocusGroupProps = React.ComponentPropsWithoutRef; type PrimitiveDivProps = React.ComponentPropsWithoutRef; interface TabsProps extends PrimitiveDivProps { /** The value for the selected tab, if controlled */ value?: string; /** The value of the tab to select by default, if uncontrolled */ defaultValue?: string; /** A function called when a new tab is selected */ onValueChange?: (value: string) => void; /** * The orientation the tabs are layed out. * Mainly so arrow navigation is done accordingly (left & right vs. up & down) * @defaultValue horizontal */ orientation?: RovingFocusGroupProps['orientation']; /** * The direction of navigation between toolbar items. */ dir?: RovingFocusGroupProps['dir']; /** * Whether a tab is activated automatically or manually. * @defaultValue automatic * */ activationMode?: 'automatic' | 'manual'; } declare const Tabs: React.ForwardRefExoticComponent>; interface TabsListProps extends PrimitiveDivProps { loop?: RovingFocusGroupProps['loop']; } declare const TabsList: React.ForwardRefExoticComponent>; type PrimitiveButtonProps = React.ComponentPropsWithoutRef; interface TabsTriggerProps extends PrimitiveButtonProps { value: string; } declare const TabsTrigger: React.ForwardRefExoticComponent>; interface TabsContentProps extends PrimitiveDivProps { value: string; /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } declare const TabsContent: React.ForwardRefExoticComponent>; declare const Root: React.ForwardRefExoticComponent>; declare const List: React.ForwardRefExoticComponent>; declare const Trigger: React.ForwardRefExoticComponent>; declare const Content: React.ForwardRefExoticComponent>; export { Content, List, Root, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Trigger, createTabsScope };