UNPKG

reablocks

Version:
46 lines (45 loc) 1.11 kB
import { default as React, FC, PropsWithChildren } from 'react'; import { TabsTheme } from './TabsTheme'; export interface TabsProps extends PropsWithChildren { /** * The class name to be added to the tabs. */ className?: string; /** * The active index of the tabs. */ selectedIndex?: number; /** * The default index of the tabs. Default is 0. * @default 0 */ defaultIndex?: number; /** * The direction of the tabs. Default is 'ltr'. * @default 'ltr' */ direction?: 'ltr' | 'rtl'; /** * The style to be added to the tabs. */ style?: React.CSSProperties; /** * The variant of the tabs. * @default 'primary' */ variant?: 'primary' | 'secondary'; /** * The size of the tabs. * @default 'medium' */ size?: 'small' | 'medium' | 'large' | string; /** * The callback to be called when a tab is selected. */ onSelect?: (index: number) => void; /** * Theme for the Tabs. */ theme?: TabsTheme; } export declare const Tabs: FC<TabsProps>;