Button
Four materials made in the button maker: Paper, Squircle, Glass and Dither, each with press, loading and success.
npx shadcn@latest add https://captain-buttons.vercel.app/r/paper.jsonButton is a Captain family piece with its own repo: github.com/jawadjalal/button-maker. Install it with the command above.
Usage
import { Paper } from "@/components/ui/paper"
<Paper onClick={deploy}>deploy</Paper>Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| loading | boolean | false | Shows progress inside the label. |
| success | boolean | false | Morphs to a check. |
| children | ReactNode | "get started" | The label. |
Keyboard
- Enter / Space
- Press
Accessibility
- A real <button>.
- aria-busy while loading.
- Press is 160ms; hover only on fine pointers.