Buttons
llms.txtExample
Primary
Secondary
Link
Icons
Colors
Usage
<Button variant="primary" size="sm">Button</Button>
API Reference
Button
A clickable button element. Renders as an anchor tag when href is provided.
Property Type Description
variant
enum
The visual variant of the button. Default:
'primary'size
enum
The size of the button. Default:
'default'href
string
When provided, the button renders as an anchor element (<a>) instead of a <button>. Default: —
type
string
The type attribute for the button element. Default:
'button'haptics
boolean
Whether to trigger haptic feedback on click (uses web-haptics). Default: —
onclick
function
Click event handler. Default: —
children required
Snippet
The content to display inside the button.
class
string
Additional CSS classes to apply. Default: —
ref $bindable
HTMLElement
The underlying DOM element. Default: —
Property
variant
size
href
type
haptics
onclick
children
class
ref