Skip to main content
K
Last modified: 24/Jun/2024

Tab Panel

Tab Panels are the children elements of the Tab component.

#Usage

import { Tabs } from '@kinsta/stratus' const MyComponent = () => ( <Tabs> <Tabs.Panel tabLabel="R2D2">Beep-Boop</Tabs.Panel> <Tabs.Panel tabLabel="C3-PO">I am C-3PO, Human-Cyborg Relations.</Tabs.Panel> </Tabs> )

#Tabs Props

#tabLabel
Required
string | ReactElement<any, string | JSXElementConstructor<any>>
#hidden
boolean
#active
boolean

#Types

  • TabPanelInterface: props of the Tab.Panel component extended by HTMLAttributes<HTMLDivElement>

Read more about types here


#See also