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.
- 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"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 | undefined 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: "_blank" | "_parent" | "_self" | "_top" | undefined Events
Section titled "Events"onNavigate
Section titled "onNavigate"Emitted when a plain click, Enter or Space activates a link tab, before the browser follows the link. Cancel it to route on the client. Does not bubble.
onNavigate(args: CustomEvent<void>): void Parameters
- args:
CustomEvent<void>