import type { CSSResultGroup } from 'lit'; import DSAIcon from '../icon/icon'; import { ShoelaceElement } from '../../internal/shoelace-element'; /** * @summary Icons buttons are simple, icon-only buttons that can be used for actions and in toolbars. * @documentation https://dsa.service-public-autonomie.fr/latest/librairie-webcomponents/actions/bouton-icone-icon-button/web-S4l5S1Hd * * @dependency dsa-icon * * @event dsa-blur - Emitted when the icon button loses focus. * @event dsa-focus - Emitted when the icon button gains focus. * @event dsa-change - Emitted when a toggle button changes its pressed state. * * @slot - (optional) A badge that will be positioned in the upper right corner (component dsa-badge). * */ export default class DSAIconButton extends ShoelaceElement { static styles: CSSResultGroup; static dependencies: { 'dsa-icon': typeof DSAIcon; }; button: HTMLButtonElement | HTMLLinkElement; /** @internal */ hasFocus: boolean; /** @internal */ disableTabIndex: boolean; /** The name of the icon to draw. Available names depend on the icon library being used. */ name?: string; /** The name of a registered custom icon library. */ library?: string; /** * An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and * can result in XSS attacks. */ src?: string; /** When set, the underlying button will be rendered as an `` with this `href` instead of a `