Button

Attribute Type Documentation Default Value
label :string

The label of the button

variant :string

Determines the style

"primary"
size :string

Determines the overall size of the elements, including padding, font size, and other items

"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

Determines if the button is icon only

false
rest :global
icon_left :slot

Icon displayed on the left of an item

[Multiple values]
icon_right :slot

Icon displayed on the right of an item

[Multiple values]
inner_block :slot

Inner block that renders HEEx content

[Multiple values]