Skip to content
Cynco UI

Components · Actions

Button

Cynco's one button: six variants on Base UI's Button, 28px tall by default.

import { Button } from "@cynco-labs/ui";

Example

Use

Use primary for the single main action of a view or sheet, secondary for everything else, muted and skeleton for quiet toolbar actions, destructive only for irreversible deletes, dotted for "add another" slots.

Props

Children (label, optional Phosphor icon at 14px). Optional isLoading (shows SmallSpinner, keeps width), disabled, size (default 28px · sm/mini/icon 24px), render/asChild to render as a link.

Notes

Primary = primary fill with primary-foreground text, a 135° sheen and shadow-sm; secondary = interactive-secondary with input border and btn-secondary-shadow. Radius rounded-lg (= radius). One primary per surface.

Source Demo source Markdown