Neutral Button

Attribute Type Documentation Default Value
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

label :string

The label of the button. When set, the inner block is replaced by the label and the icon slots.

rest :global
icon_left :slot

Icon displayed on the left of the label

icon_right :slot

Icon displayed on the right of the label

inner_block :slot

Inner block that renders HEEx content when no label is set

<.chevron_right />