Icon Button

Attribute Type Documentation Default Value
is_rounded :boolean

Whether the button should be rounded or not

false
class :string

Tailwind class for the button

rest :global

Additional global attributes for the button. form | name | value

size :string

The button size style. xs | sm | md | lg | xl. default: md

"md"
context :string

The context of the button

"brand"
variant :string

The button variant style. fill | soft | outline | ghost. Default: fill

"fill"
link_type :string

Type of the link if the button is a link

"button"
to :string

Link path

Required inner_block * :slot

The content of the button. Any svg icon or icon components can be used here

<.icon name='star'/>