.finally(React)

English
Copyright © 2023-currentdotfinally, LLC

Tabs

Spaces are better than tabs

The Tabs component can be used by importing { Tabs } from "finallyreact".

Example

Tab 1
🍏The Second Tab
The Third Tab🦙

Tab 1 Content

Tab 3 Content

Example

Custom Styles

Tab 1
The Second Tab
The Third Tab

Tab 1 Content

Tab 3 Content

Custom Styles

Disabled

Tab 1
🍏The Second Tab
The Third Tab🦙

Tab 1 Content

Tab 3 Content

Disabled

Simple

Tab 1
The Second Tab
The Third Tab

Tab 1 Content

Tab 2 Content

Tab 3 Content

Simple

Tabs Props

Prop NameProp TypeDescription
activeTabPropsHTMLAttributesProps for the active tab
activeTabValueanyValue of the active tab
contentPropsHTMLAttributesProps for the tabs content
defaultActiveTabValueanyDefault value of the active tab
disabledbooleanDisables user interaction
headerPropsHTMLAttributesProps for the tabs header
onChange(tab) => voidCallback for when a tab is changed
simplebooleanRenders simple tabs
tabPropsHTMLAttributesProps for the individual tabs
tabsobject[]Array of tabs
tabs[].activeProps
HTMLAttributesProps for the active tab state
tabs[].disabled
booleanDisables the tab
tabs[].iconLeft
anyIcon displayed left of the tab label
tabs[].iconRight
anyIcon displayed right of the tab label
tabs[].label
stringLabel for the tab
tabs[].value
anyValue of the tab