Button

A versatile button component with multiple variants, sizes, and navigation support.

Default

Variants

The button component supports multiple visual variants for different contexts.

Variants

Sizes

Buttons come in different sizes to fit various UI contexts.

Sizes

With Icon

Add icons to buttons for better visual communication.

With Icon

Loading State

Show a loading state while an action is being processed.

Loading

Buttons can render as links using the navigate , patch , or href props.

As Link

Notes

  • When using size="icon" , always provide an aria-label for accessibility.
  • The loading state automatically sets aria-busy="true" and disables the button.
  • Use navigate for LiveView navigation, patch for same-LiveView updates, and href for external links.