Tabs
An input with multiple options of which only 1 can be selected at a time.
Importing
1
import { Tabs } from '@infinityfx/fluid';Usage
API reference
Tabs Props
options
{ label: string; value: (T extends string | number | string[]); disabled?: boolean; panelId?: string; }[]
Required
The array of tab options.
variant?
'default' | 'minimal'
'default'
value?
T
Controlled value of the currently selected tab.
defaultValue?
T
Default selected tab value.
onChange?
(value: T) => void
Callback function triggered when tab selection changes.