Captain UI

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.json

Usage

import { Paper } from "@/components/ui/paper"

<Paper onClick={deploy}>deploy</Paper>

Props

PropTypeDefaultWhat it does
loadingbooleanfalseShows progress inside the label.
successbooleanfalseMorphs to a check.
childrenReactNode"get started"The label.

Keyboard

Enter / Space
Press

Accessibility

  • A real <button>.
  • aria-busy while loading.
  • Press is 160ms; hover only on fine pointers.