A tab nested in a tabs component. Find-in-page, a text fragment or a link to an element in the panel of a tab that is not disabled selects it.
- Element
-
igc-tab
- Slots
-
default— Renders the tab's content. -
label— Renders the tab header's label. Takes non-interactive content only. -
prefix— Renders the tab header's prefix. Takes non-interactive content only. -
suffix— Renders the tab header's suffix. Takes non-interactive content only.
- CSS Parts
-
tab-header— The header of a single tab. -
base— The wrapper of the prefix, the label and the suffix in the tab header. -
prefix— Tab header's label prefix. -
content— Tab header's label slot container. -
suffix— Tab header's label suffix. -
tab-body— Holds the body content of a single tab, only the body of the selected tab is visible.
Properties
Section titled "Properties"disabled
Section titled "disabled"Whether the tab is disabled.
disabled: boolean = false Defined in src/components/tabs/tab.ts:120
Optional href
Section titled "href"The URL of the tab. When set, the tab header renders as a link.
A plain click selects the tab and follows the link; cancel igcNavigate to route
on the client. A click with a modifier key or the middle button opens the link
without selecting the tab. A disabled tab does not follow its link.
href: string Defined in src/components/tabs/tab.ts:132
label
Section titled "label"The tab item label.
label: string = '' Defined in src/components/tabs/tab.ts:102
Optional rel
Section titled "rel"Space-separated link types, used when href is set.
rel: string Defined in src/components/tabs/tab.ts:150
selected
Section titled "selected"Whether the tab is selected.
selected: boolean = false Defined in src/components/tabs/tab.ts:111
Optional target
Section titled "target"Where to open the URL when href is set. Without it, the target of the page's
<base> element applies. A target other than _self never changes the selection.
In a page that is not in a frame, _parent and _top count as _self.
target: "_parent" | "_top" | "_self" | "_blank" Defined in src/components/tabs/tab.ts:142
tagName
Section titled "tagName"The tagName read-only property of the Element interface returns the tag name of the element on which it's called.
tagName: "igc-tab" = 'igc-tab' Defined in src/components/tabs/tab.ts:61
Methods
Section titled "Methods"connectedCallback
Section titled "connectedCallback"connectedCallback(): void Defined in src/components/tabs/tab.ts:166
Returns void
disconnectedCallback
Section titled "disconnectedCallback"disconnectedCallback(): void Defined in src/components/tabs/tab.ts:172