Button
Action button wey get different tone, size and loading state from design tokens.
Input fields, choices, validation, dates and native form behaviour.
lr-button
import '@aceshooting/lyra-ui/components/lr-button.js';Example
import '@aceshooting/lyra-ui/components/lr-button.js';
<div style="display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;">
<lr-button variant="brand" appearance="accent" style="--lr-button-width:auto;">Save</lr-button>
<lr-button variant="success" appearance="outlined" style="--lr-button-width:auto;">Approve</lr-button>
<lr-button variant="danger" appearance="plain" style="--lr-button-width:auto;">Delete</lr-button>
</div>Components wey relate
- Checkbox — Form control wey fit show checked, unchecked or indeterminate state.
- Checkbox group — E gather related checkboxes as one validated form field for many choices.
- Code editor — Place to edit code for many lines without extra dependency; line numbers dey optional.
- Colour picker — Native colour field wey work with form, label, hint and validation error.
- Combobox — Text input join listbox wey pop out so person fit filter and choose one or many items.
- Date input — Date field wey get calendar popover and store value as ISO-8601.