UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

29 lines (28 loc) 962 B
import * as React from 'react'; import type { BaseUIComponentProps } from '../../utils/types.js'; import type { TabsOrientation, TabValue } from '../root/TabsRoot.js'; /** * An individual interactive tab button that toggles the corresponding panel. * Renders a `<button>` element. * * Documentation: [Base UI Tabs](https://base-ui.com/react/components/tabs) */ declare const TabsTab: React.ForwardRefExoticComponent<TabsTab.Props & React.RefAttributes<Element>>; declare namespace TabsTab { interface Props extends BaseUIComponentProps<'button', TabsTab.State> { /** * The value of the Tab. * When not specified, the value is the child position index. */ value?: TabValue; } interface State { /** * Whether the component should ignore user interaction. */ disabled: boolean; selected: boolean; orientation: TabsOrientation; } } export { TabsTab };