import {} from "@wfp/react"; () => { return <ad label="Tab 1" selected />; };
(index?: number,label?: ReactNode,evt?: ChangeEvent<HTMLInputElement>) => void
Optional callback for when a tab is clicked. Provides the index, label, and event details. @functionality
(index?: number) => void
Optional callback for when a tab gains focus. Provides the index of the focused tab. @functionality
Optional callback for when a keydown event occurs on a tab. Provides the index, label, and event details. @functionality
string
Href for the tab, useful when each tab is associated with a different URL. @navigation
number
Index of the tab within the Tabs component. @navigation
ReactNode
Content to be displayed as the label of the tab. Can be a string or React node. @content
ARIA role for the tab element, often set to 'tab'. @accessibility
boolean
Indicates whether the tab is currently selected. @state
TabIndex for the tab, useful for accessibility and keyboard navigation. @accessibility
(props?: object) => ReactNode
Optional custom renderer for the anchor element within the tab. @render
() => ReactNode
Optional custom renderer for the content of the tab. @render
ReactNode |((props?: object) => ReactNode)
Optional custom renderer for the list element of the tab. @render
Optional CSS class to apply to the tab. Allows for additional styling. @style
Indicates whether the tab is disabled. @state
Optional components to replace default elements of the Tab, such as the Tab itself. @customization