Components
button
Interactive button with variants.
Interactive button with multiple visual variants and states.
; Navigate to screen
(button "Go to Dashboard" :primary :to dashboard)
; Open overlay
(button "Open Modal" :ghost :to "#my-modal")
; Close overlay
(button "Close" :ghost :to :close)
accepts contentaccepts children
Alignment
| Property | Type | Default |
|---|
:start | flag | - |
:center | flag | - |
:end | flag | - |
Sizing
| Property | Type | Default |
|---|
:full | flag | - |
:fit | flag | - |
:fill | flag | - |
Dimensions
| Property | Type | Default |
|---|
:width | any | - |
:height | any | - |
Variants
| Property | Type | Default |
|---|
:primary | flag | - |
:secondary | flag | - |
:ghost | flag | - |
:danger | flag | - |
:success | flag | - |
:warning | flag | - |
:info | flag | - |
State
| Property | Type | Default |
|---|
:disabled | flag | - |
:loading | flag | - |
:active | flag | - |
Navigation
| Property | Type | Default |
|---|
:to | target | - |
Content
| Property | Type | Default |
|---|
:icon | any | - |
(box :row :gap 8
(button "Edit" :ghost)
(button "Delete" :danger)
(button "Share" :secondary))