React Tabs Component API
Tabs API
Explore the API reference for the React Tabs component and discover how to effectively utilize its props for customization.
CTab#
import { CTab } from '@coreui/react'// orimport CTab from '@coreui/react/src/components/tabs/CTab'
Property | Default | Type |
---|---|---|
className# | - | string |
A string of all className you want applied to the base component. | ||
disabled# | - | boolean |
Toggle the disabled state for the component. | ||
itemKey# | - | string , number |
Item key. |
CTabContent#
import { CTabContent } from '@coreui/react'// orimport CTabContent from '@coreui/react/src/components/tabs/CTabContent'
Property | Default | Type |
---|---|---|
className# | - | string |
A string of all className you want applied to the base component. |
CTabList#
import { CTabList } from '@coreui/react'// orimport CTabList from '@coreui/react/src/components/tabs/CTabList'
Property | Default | Type |
---|---|---|
className# | - | string |
A string of all className you want applied to the base component. | ||
layout# | - | 'fill' , 'justified' |
Specify a layout type for component. | ||
variant# | - | 'pills' , 'tabs' , 'underline' , 'underline-border' |
Set the nav variant to tabs or pills. |
CTabPanel#
import { CTabPanel } from '@coreui/react'// orimport CTabPanel from '@coreui/react/src/components/tabs/CTabPanel'
Property | Default | Type |
---|---|---|
className# | - | string |
A string of all className you want applied to the base component. | ||
itemKey# | - | string , number |
Item key. | ||
onHide# | - | () => void |
Callback fired when the component requests to be hidden. | ||
onShow# | - | () => void |
Callback fired when the component requests to be shown. | ||
transition# | true | boolean |
Enable fade in and fade out transition. | ||
visible# | - | boolean |
Toggle the visibility of component. |
CTabs#
import { CTabs } from '@coreui/react'// orimport CTabs from '@coreui/react/src/components/tabs/CTabs'