Open Code guidance for Button is documented here to support consistent implementation decisions.
Composition
Composition guidance for Button is documented here to support consistent implementation decisions.
Props
Prop | Type | Default | Description |
|---|---|---|---|
variant | "primary" | "secondary" | "ghost" | "primary" | Visual style of the button. |
size | "sm" | "md" | "lg" | "md" | Size of the button. |
disabled | boolean | false | Disables the button and prevents interaction. |
onClick | () => void | — | Callback fired when the button is clicked. |