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.

Whether the tab is disabled.

disabled: boolean = false

Defined in src/components/tabs/tab.ts:120

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

The tab item label.

label: string = ''

Defined in src/components/tabs/tab.ts:102

Space-separated link types, used when href is set.

rel: string

Defined in src/components/tabs/tab.ts:150

Whether the tab is selected.

selected: boolean = false

Defined in src/components/tabs/tab.ts:111

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

The tagName read-only property of the Element interface returns the tag name of the element on which it's called.

MDN Reference

tagName: "igc-tab" = 'igc-tab'

Defined in src/components/tabs/tab.ts:61

connectedCallback(): void

Defined in src/components/tabs/tab.ts:166

Returns void

disconnectedCallback(): void

Defined in src/components/tabs/tab.ts:172

Returns void