Icon button
Triggers an action with a compact, accessible icon-only button.
Inputs, selection, validation, dates, and native form behavior.
lr-icon-button
import '@aceshooting/lyra-ui/components/lr-icon-button.js';Example
import '@aceshooting/lyra-ui/components/lr-icon-button.js';
import '@aceshooting/lyra-ui/components/lr-icon.js';
<div style="display:flex;gap:8px;align-items:center;justify-content:center">
<lr-icon-button icon="search" aria-label="Search">
</lr-icon-button>
<lr-icon-button icon="add" aria-label="Add">
</lr-icon-button>
<lr-icon-button icon="trash" aria-label="Delete">
</lr-icon-button>
<lr-icon-button icon="close" aria-label="Close" disabled>
</lr-icon-button>
</div>Related components
- Input — Single-line text field with optional label, hint, and inline validation chrome.
- Country picker — Selects country and territory codes with localized names, flags and optional search.
- Currency picker — Selects currency codes with localized names, symbols and optional search.
- Time zone picker — Selects time-zone identifiers from an ordered catalog, with optional search.
- Unit picker — Selects measurement-unit identifiers with localized names, symbols and optional search.
- Locale picker — Closed-list dropdown for switching the active locale, sourced from the library's own locale registry.