Button

Renders a button

Attribute Type Documentation Default Value
icon_position :string "left"
size :string "sm"
color :string
class :string
variant :string "primary"
type :string "button"
disabled :boolean false
loading :boolean false
loading_text :string
tooltip :string
rest :global
inner_block :slot
icon :slot
<:icon>
  <.icon name="hero-magnifying-glass" />
</:icon>
<p>Search now</p>