reablocks
Version:
Component library for React
48 lines (46 loc) • 967 B
TypeScript
import { TabsTheme } from './TabsTheme';
import { FC, PropsWithChildren } from 'react';
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;
/**
* The size of the tabs.
*
* @private
*/
size?: 'small' | 'medium' | 'large' | string;
/**
* Theme for the Tabs.
*/
theme?: TabsTheme;
}
export declare const Tab: FC<TabProps>;