import { ReactElement } from 'react'; import { TabItemProps, SizeType } from './types'; export type { TabItemProps, SizeType }; /** * For navigation between sections. Tabs will be always buttons * */ export interface TabsProps { items: Array; active: string; onChange?: (a: string) => void; size?: SizeType; tabBorder?: boolean; themeTabsContainer?: string; themeTabItem?: string; id?: string; } declare function Tabs({ size, tabBorder, items, active, onChange, themeTabItem, themeTabsContainer, id }: TabsProps): ReactElement; declare namespace Tabs { var propTypes: { /** * The ID of the active item. Value must correspond with an `id` property * in the `items` array. */ active: any; /** * Each tab is an object with the following properties: * - `id` (required): A string ID. * - `label`: Text or React node. A button will be automatically created based on the label. if label is not provided the id will serve as a label * - `disabled`: Boolean. * - `content`: React node for generating the tab content. * If provided, the tab content will automatically be rendered when changing tabs. Tab content does not have any styling applied by by default */ items: any; /** * A callback that will be invoked when an item is clicked. * It will receive the ID of the clicked item and the click `event` itself as arguments. */ onChange: any; /** * Three sizes: "small", "medium", or "large". */ size: any; /** * If `true`, there will be a bottom border on the active tab border. * The element will extend down one pixel so the underline beneath the active item overlaps the bottom border of a container. * You must provide your own bottom border, by setting it on a container element or in the themeTabsContainer. */ tabBorder: any; /** Css classes for wrapping the tabs. */ themeTabsContainer: any; /** Css classes for the tab item. Active tab has the is-active class, so you can use *-on-active to * control the color of the active tab. */ themeTabItem: any; }; } export default Tabs;