ComponentsButton
Button
Trigger an action or submit a form. Use a primary button for the action the user is most likely to take.
Publish changes
Publish now or keep working on this draft.
Setup
Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.
Compact
Use a shorter button with compact corners for actions in dense toolbars and panels.
Icon and label
Pair an icon with a visible label to make an action easier to scan.
Icon only
Use a circular button for a familiar action in a tight space.
Visual emphasis
Use a quiet action beside a stronger or destructive action.
Loading state
Use an explicit label and progress indicator while an action runs.
Usage
| Primary | Use ilui-primary on the main action in a group. |
|---|---|
| Disabled | The native disabled attribute prevents interaction and removes the control from tab order. |
| Compact | Add ilui-button--compact for dense layouts. The touch target stays at least 44 px. |
| Icon only | Add ilui-button--icon for a circular action and provide an aria-label. |
| Keyboard | Enter and Space activate the focused button. Set type="button" outside form submission. |