UNPKG

@universal-material/web

Version:
37 lines 1.19 kB
import { CSSResultGroup } from '@lit/reactive-element/css-tag'; import { UmButtonBase } from './button-base.js'; export type UmButtonShape = 'round' | 'square' | undefined; export type UmButtonSize = 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large' | undefined; export declare abstract class UmToggleButton extends UmButtonBase { static styles: CSSResultGroup; /** * When true, the button will toggle between selected and unselected * states */ toggle: boolean; /** * When true, the button will toggle between round and square shapes */ toggleShape: boolean; /** * Sets the selected state */ selected: boolean; /** * Sets the shape of the button */ shape: UmButtonShape; /** * Sets the size of the button */ size: UmButtonSize; /** * The `aria-label` of the button when the button is toggleable and selected. */ ariaLabelSelected: string; hasSelectionIcon: boolean; protected handleClick(event: UIEvent): void; getAriaLabel(): string | null; protected handleSelectedIconSlotChange(e: Event): void; } //# sourceMappingURL=toggle-button.d.ts.map