UNPKG

reablocks

Version:
56 lines (55 loc) 1.19 kB
import { FC, PropsWithChildren, ReactElement } from 'react'; import { TabsTheme } from './TabsTheme'; export interface TabProps extends PropsWithChildren { /** * The id of the tab list. * @private */ id?: string; /** * The class name to be added to the tab container. */ containerClassName?: string; /** * The class name to be added to the tab. */ className?: string; /** * The disabled state of the tab. * * @private */ disabled?: boolean; /** * The selected state of the tab. * * @private */ selected?: boolean; /** * The callback to be called when the tab is selected. * * @private */ onSelect?: () => void; /** * Element to display before the Button content. */ start?: ReactElement; /** * Element to display after the Button content. */ end?: ReactElement; /** * The size of the tabs. * * @private * @default 'medium' */ size?: 'small' | 'medium' | 'large' | string; /** * Theme for the Tabs. */ theme?: TabsTheme; } export declare const Tab: FC<TabProps>;