Components built for Puzzle

PUZZLE PIECES

Over 100 accessible components for Puzzle apps. No lock-in. Real code, one command away.

Quick start

From zero to interface in three steps

  1. Add the piece

    $ puzzle add piece button

    The CLI drops the .pzl file and any lib helpers it needs into your app, and copies the default theme on the first add. It prints the stylesheet import and any npm install command for you to run.

  2. Import it

    import Button from '@/components/ui/Button.pzl';

    A normal import of a normal file. Your compiler sees it, Tailwind scans it, your editor jumps straight to the source.

  3. Use it

    <Button variant="primary" @press={ save }>Save</Button>

    Config flows in through props, values flow back through callbacks, and the parent keeps the state. Then change whatever you like. It's your file now.

Charts, calendars, command menus

Over 100 pieces

stat-card →

Dashboard

Revenue

$128,430

up 12.4 percentvs last quarter

Active users

8,912

up 3.1 percentvs last quarter
Desktop
Mobile
Tablet
Weekly sessions stacked by device type
weekDesktopMobileTablet
W13.2k4.1k700
W23.4k4.3k650
W33.3k4.6k720
W43.6k4.8k680
W53.5k5.1k640
W63.8k5.3k700
W73.7k5.6k660
W83.9k5.9k690
slider →

Forms

Volume · 64

Rate this release

data-table →

Invoices

InvoiceClientStatusAmount
INV-1042Acme Inc.Paid1200
INV-1043GlobexPending980
INV-1044InitechPaid3450
INV-1045Umbrella Co.Overdue540
INV-1046SoylentDraft120

Click a header to sort. Selection survives the re-sort.

calendar →

Pick a date

S
M
T
W
T
F
S

Selected · 2026-08-12

command →

Command menu

Add a piece…⌘ N
Browse all components
Toggle theme⌘ T
Open design tokens
Search the docs⌘ K
Open the repository

Filter, group, and run. All keyboard-driven, on the native dialog element.

input-otp →

Verify

Type or paste, and ⌫ steps back a cell.

progress →

Status

Uploading assets62%
Memory26 GB / 32 GB
Deploying to production…

Make it yours

Four themes in the registry

Every component styles itself only through semantic tokens, so switching data-scheme restyles everything at once. All four palettes support dark, dim, mixed, and light styles, for sixteen appearances.

Default

Balanced cool neutrals, indigo accent

Warm

Warm neutrals, terracotta accent

Void

Monochrome, very black, high contrast

Cool

A little more blue — blue-black grounds and periwinkle type, a lit-blue accent.

Built for everyone

Accessible by default.

Native dialog overlays

Dialogs and the command palette use the native dialog element with showModal(), so the browser provides focus trapping, Escape handling, and an inert page.

Keyboard first

The command palette supports arrow navigation and Enter; tabs and sliders add Home/End movement.

ARIA wired in

Labels, roles, and state attributes ship in the markup, not left as an exercise.