import { UiElement } from '../shared/element.js'; import type { TooltipPlacement } from '../tooltip/tooltip.js'; import '../tooltip/tooltip.js'; /** * One option of a `` (Carbon `Switch` / `IconSwitch`). The host is the * `tab`: role, `aria-selected`, roving `tabindex` and the selection fill all live on it, so the * switcher's `tablist` has real tabs as children. * * With `icon-only`, `label` is also shown as an icon tooltip (Carbon `IconSwitch`): on hover after * 100ms and on keyboard focus (arrow keys included); a click, Enter / Space or Esc closes it. * * @slot - Label text * @slot icon - A 16px icon (20px in `size="lg"`) before the text, or alone with `icon-only` + `label` * @csspart label - The label wrapper * @csspart tooltip - The `` of an `icon-only` item * @cssprop --ui-content-switcher-item-radius / --ui-content-switcher-item-size / --ui-content-switcher-item-grow - Corner radius, `inline-size` and `flex-grow` (default 4px, 100%, 0) * @cssprop --ui-content-switcher-divider / --ui-content-switcher-selected-shadow - The rule between items and the selected one's shadow (default hairline, none) */ export declare class UiContentSwitcherItem extends UiElement { static readonly styles: import("lit").CSSResult; /** Identifies the item in `ui-change` (Carbon `name`). */ name: string; /** Accessible name — required with `icon-only`. */ label: string; /** * Set by the switcher from its `selected-index` (it overwrites any value you set): read it or style on * `[selected]`; select an item with the switcher's `selected-index`. */ selected: boolean; disabled: boolean; iconOnly: boolean; /** Where the `icon-only` tooltip shows (Carbon `align`, default top). */ tooltipPlacement: TooltipPlacement; /** Set by the switcher: which item is the single tab stop (the selected one, or the first enabled one). */ focusable: boolean; connectedCallback(): void; protected updated(): void; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'ui-content-switcher-item': UiContentSwitcherItem; } }