Skip to main content

Tab

<sc-tab></sc-tab>

This component let users create tab.

GeneralCustomGeneralDisabledThis is the general tab panel.This is the custom tab panel.This is the advanced tab panel.This is a disabled tab panel.

Component Codex

Properties

PropertyDescriptionTypeDefault
activeDraws the tab in an active state.booleanfalse
countstring
disabledDraws the tab in a disabled state.booleanfalse
hrefstring
panelThe name of the tab panel the tab will control. The panel must be located in the same tab group.string''

Events

EventDescriptionType
scCloseClose eventCustomEvent<void>

Methods

triggerBlur() => Promise<void>

Removes focus from the tab.

triggerFocus(options?: FocusOptions) => Promise<void>

Sets focus to the tab.

Shadow Parts

PartDescription
content
counter
prefix
suffix