Button

Attribute Type Documentation Default Value
label :string

Provides fallback text when the default slot is empty.

""
variant :string

Controls the visual emphasis and semantic intent.

"primary"
size :string

Controls the button dimensions and text size.

"large"
href :any

Uses traditional browser navigation to the new location

navigate :string

Navigates to a LiveView

patch :string

Patches the current LiveView

icon_only :boolean

Uses the default slot as the entire button content. An accessible label is required.

false
rest :global
icon_left :slot

Icon displayed on the left of an item

icon_right :slot

Icon displayed on the right of an item

inner_block :slot

Inner block that renders HEEx content