Hextech UI

Button

Live example

Button

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/button.json

API reference

These are the main Button options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
variantprimary | secondary | text | hextech | dimmed | destructivesecondary
sizesmall | medium | largemedium
shapenormal | square | roundnormal
loadingbooleanfalse

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

Button sizes