Getting startedFoundationsUtilitiesComponentsReleasesSupportGetting startedFoundationsUtilitiesComponentsReleasesComponent StatusAccordion GroupAccordionCollapseBadgeButtonButton DropdownCardStatus CardContentData GridData Grid Table HeaderDate PickerDate Picker InputDate Range PickerDate Range Picker ButtonInputSelectText AreaCheckboxCheckbox GroupRadio ButtonRadio Button GroupComboboxIconIcon LibraryListList Parent ItemList ItemList HeaderHeaderMobile SubheaderFooterFooter ItemSidebarAlertToastToast GroupDialogModalPanelPopoverPaginationSpinnerTabsTab GroupTabTab Panel GroupTab PanelToggle

Component Tab

The tabs component is used to create a container that wraps all other tab components.

Example

<som-tabs>
<som-tab-group contained>
<som-tab name="Tab one"></som-tab>
<som-tab name="Tab two"></som-tab>
<som-tab name="Tab three" active></som-tab>
</som-tab-group>
</som-tabs>

Props

AttrTypeDefaultDocs

active

boolean

This boolean controls if the tab is active.

dark

boolean

false

name

string

This property sets the name of the tab.

tab-id

string

generateId('som-tab')

This property can be used to specifically set an ID to the tab. If an ID is not provided, it will be dynamically generated.

Events

EventDetailDocs

tabClick

any

Healthy

Healthy content is accurate and represents our most up-to-date recommendations.

Get in touch

Do you have an idea, or want to help us improve this page? Reach out to us via email.

DTMB-DG-Support@michigan.gov

Need help? Visit our Support page to learn how to get assistance, troubleshoot issues, and connect with the team.

Get in touch

Do you have an idea, or want to help us improve this page? Reach out to us via email.

DTMB-DG-Support@michigan.gov

Need help? Visit our Support page to learn how to get assistance, troubleshoot issues, and connect with the team.

Open source