ComponentsButton

Button

Trigger an action or submit a form. Use a primary button for the action the user is most likely to take.

Example

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.

Example

Icon and label

Pair an icon with a visible label to make an action easier to scan.

Example

Icon only

Use a circular button for a familiar action in a tight space.

Example

Visual emphasis

Use a quiet action beside a stronger or destructive action.

Example

Loading state

Use an explicit label and progress indicator while an action runs.

Example

Usage

PrimaryUse ilui-primary on the main action in a group.
DisabledThe native disabled attribute prevents interaction and removes the control from tab order.
CompactAdd ilui-button--compact for dense layouts. The touch target stays at least 44 px.
Icon onlyAdd ilui-button--icon for a circular action and provide an aria-label.
KeyboardEnter and Space activate the focused button. Set type="button" outside form submission.