Button
Live example
Button
Installation
npx shadcn@latest add https://hextech-ui.vercel.app/r/button.jsonAPI reference
These are the main Button options. See the exported TypeScript types for inherited native or primitive props.
| Prop | Type | Default |
|---|---|---|
variant | primary | secondary | text | hextech | dimmed | destructive | secondary |
size | small | medium | large | medium |
shape | normal | square | round | normal |
loading | boolean | false |
Loading
Set loading while an action is pending. The button announces its busy state and prevents repeated activation. Keep a readable action label.
Live example
Saving an action
Sizes
Choose a size for the surrounding layout; all tones use the same size contract.
Live example