import type { TooltipPlacement } from '../tooltip/tooltip.js'; import '../button/button.js'; import '../tooltip/tooltip.js'; import '../badge-indicator/badge-indicator.js'; import { UiElement } from '../shared/element.js'; export type IconButtonKind = 'primary' | 'secondary' | 'tertiary' | 'ghost'; /** Carbon IconButton sizes (no xl / 2xl, unlike Button): sm 32 · md 40 · lg 48px. */ export type IconButtonSize = 'sm' | 'md' | 'lg'; /** * Carbon `IconButton`: a square `` named by an icon tooltip (`label`), * so the name is visible on hover / focus and read by screen readers. Kinds primary / secondary / * tertiary / ghost (default ghost), sizes sm 32 / md 40 / lg 48. `pressed` makes it a toggle. * `tooltip-placement` takes every Carbon `align` value: top, bottom, left, right, each with `-start` / `-end` * (Carbon's deprecated `top-left` … names are not taken); `align` works too, Carbon's name for it. * * `badge-count` (Carbon `badgeCount`, for a ghost lg button) puts a `` in its corner: 0 a dot, a * number a count read as the button's description; or put your own `` inside. Hidden while disabled. * * @slot - The 16px icon * @slot badge-indicator - A `` (it takes this slot itself) * @fires click - Native * @csspart button - The inner `` * @csspart tooltip - The `` * @fires ui-navigate - detail: { href } (cancelable) on a plain click of the link; cancel it to route client-side (README: SPA router) * @attr align - Carbon IconButton's name for `tooltip-placement` (same values) */ export declare class UiIconButton extends UiElement { static readonly shadowRootOptions: ShadowRootInit; static readonly styles: import("lit").CSSResult; /** Required: the accessible name and tooltip text. */ label: string; kind: IconButtonKind; size: IconButtonSize; /** Where the tooltip goes: top, bottom, left, right, each with `-start` / `-end` (Carbon `align`). */ tooltipPlacement: TooltipPlacement; /** Carbon IconButton's name for `tooltipPlacement` (same values); an `align` attribute works too. */ get align(): TooltipPlacement; set align(value: TooltipPlacement); static get observedAttributes(): string[]; attributeChangedCallback(name: string, old: string | null, value: string | null): void; disabled: boolean; /** Disabled but focusable, so its tooltip can still be read (and say why, e.g. "Delete — needs approver rights"). */ disabledFocusable: boolean; /** Busy: the icon gives way to a centred spinner, as `` (MUI IconButton `loading`). */ loading: boolean; /** What `loading` announces (default: the translation's "Loading"). */ loadingLabel: string; /** Toggle state (`aria-pressed`); leave unset for a plain button. */ pressed?: boolean; href: string; /** The button opens a popup (`aria-haspopup`); pair with `expanded`. */ haspopup: string; expanded: boolean; /** A badge in the corner: 0 a dot, a number a count (Carbon `badgeCount`). */ badgeCount?: number; private readonly button; focus(options?: FocusOptions): void; /** The count of the badge (own or slotted) for screen readers, as Carbon's `aria-describedby` on it. */ private get badgeDescription(); render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'ui-icon-button': UiIconButton; } }