reablocks
Version:
Component library for React
45 lines (43 loc) • 989 B
TypeScript
import { TabsTheme } from './TabsTheme';
import { FC, PropsWithChildren } from 'react';
export interface TabListProps extends PropsWithChildren {
/**
* The id of the tab list.
* @private
*/
id?: string;
/**
* The class name to be added to the tab list.
*/
className?: string;
/**
* The active index of the tabs.
* @private
*/
selectedIndex?: number;
/**
* The direction of the tabs. Default is 'ltr'.
* @private
*/
direction?: 'ltr' | 'rtl';
/**
* The callback to be called when a tab is selected.
* @private
*/
onSelect?: (index: number) => void;
/**
* The variant of the tabs.
* @private
*/
variant?: 'primary' | 'secondary';
/**
* The size of the tabs.
* @private
*/
size?: 'small' | 'medium' | 'large' | string;
/**
* Theme for the Tabs.
*/
theme?: TabsTheme;
}
export declare const TabList: FC<TabListProps>;