reablocks
Version:
Component library for React
43 lines (41 loc) • 1.02 kB
TypeScript
import { TabsTheme } from './TabsTheme';
import { default as React, FC, PropsWithChildren } from 'react';
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.
*/
defaultIndex?: number;
/**
* The direction of the tabs. Default is 'ltr'.
*/
direction?: 'ltr' | 'rtl';
/**
* The style to be added to the tabs.
*/
style?: React.CSSProperties;
/**
* The variant of the tabs.
*/
variant?: 'primary' | 'secondary';
/**
* The size of the tabs.
*/
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>;