Button
Button component with multiple variants and states.
Examples
<.button variant={:primary}>Primary</.button>
<.button variant={:secondary}>Secondary</.button>
<.button variant={:ghost}>Ghost</.button>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | :primary | :secondary | :ghost | :danger | :success | :primary | Button style variant |
| size | :sm | :md | :lg | :xl | :md | Button size |
| disabled | boolean | false | Disable the button |
| loading | boolean | false | Show loading spinner |