Skip to main content

CaTabPanel

Display content by tab panel

SASS-path: ./styles/components/atoms/ca-tab-content.scss

Props

NameDescriptionTypeRequiredDefault
indexIndex of panelNumbertrue-
panelCountTotal amount of panelsNumbertrue-
selectedTabSelected panel by indexNumberfalse0

Slots

NameDescriptionDefault Slot Content
default--

Computed

ComputedTypeDescriptionFrom Store
panelIdStringpanel-id for accessibility TODO: id needs to be unique. Will currently duplicate if several instancesNo
selectedNumberCase selected tab index is above panel count - fallback 0No
isSelectedBooleanIf current tab is selectedNo
setAriaSelectedStringaria-selected for accessibilityNo