Button

Displays a button.

API Reference

Button

NameTypeDefault
variant:symbol:default
Visual style of the button. Options: :default | :destructive | :outline | :secondary | :ghost | :link. Default provides primary styling, destructive for dangerous actions, outline for secondary actions, ghost for minimal styling, and link for text-like appearance.
size:symbol:default
Button size and padding. Options: :default | :sm | :lg | :icon. Icon size is optimized for square buttons containing only icons.
type:symbol:button
HTML button type attribute.
attributeskeyword arguments

Examples