Searching Puzzle Pieces

Type to search Puzzle Pieces.

Components

All 102 pieces in the registry. Every one is a native Puzzle component you copy into your app — click through for live examples and usage.

Button

Button with primary/secondary/outline/ghost/destructive variants, three sizes, and a loading state

Button Group

Joined row of action buttons — segmented toolbar cluster from an items array with icons, outline/secondary variants, and three sizes

Calendar

Inline month-grid calendar with days/months/years drill-down, full keyboard nav, min/max + disabledDates, locale-aware labels via Intl, caller-owned day-cell snippets, and an opt-in display-only range/preview shading overlay

Checkbox

Checkbox built on a native input, with optional label and hint, click-anywhere label wrapper, and a change callback

Combobox

Filterable autocomplete combobox with ranked filtering, groups, optional-controlled open, aria-activedescendant keyboard nav, and snippet-customizable option content

Copy Button

Click-to-copy button — writes a value to the clipboard and shows a transient copied state (check icon, swapped label/aria-label, aria-live announcement) before reverting

Date Picker

Field-shaped trigger + popover composing Calendar: controlled ISO value, optional-controlled open, label/hint/error, locale-aware trigger label, auto-flip, forwarded day-cell snippets, and optional trigger↔panel morph

Date Range Picker

Start/end range selection in a field-shaped trigger + popover composing Calendar: controlled {start,end} ISO value, in-between range + hover-preview shading, optional-controlled open, one or two months, optional presets, and forwarded day-cell snippets

Dropzone

File upload dropzone — drag-drop + click-to-browse over a hidden file input, dragover styling, removable file list, and accept/size validation

Emoji Picker

Emoji picker popover — searchable, keyboard-navigable grid of the full Unicode emoji set grouped by category, with slot trigger, optional-controlled open, auto-flip, and optional trigger↔panel morph

Emoji Picker Simple

Lightweight emoji picker popover — bottom category tabs instead of search (skips the keyword data file), one category rendered at a time, keyboard grid nav, optional-controlled open, and optional morph

Fader

Full-width fill slider — a flat, dial-style parameter control with an inline label, right-aligned value readout, interior ticks, and a bar handle

Field

Labeled text input with hint/error helper text, danger invalid state, and full ARIA wiring

Input Group

Field-compatible input with fused prefix/suffix addon slots — group-level focus ring and error styling, full label/hint/error ARIA

Input OTP

Segmented one-time-code input — single-char cells with paste distribution, backspace/arrow navigation, numeric or alphanumeric charsets, optional group separators, and change/complete callbacks

Label

Accessible <label> for a form control, with a `for` target and slot content

Markdown Editor

WYSIWYG markdown editor on Tiptap/ProseMirror — Toolbar-driven headings, bold/italic/strike, inline code, lists, task lists, blockquote, code block, rules, links, and tables, with markdown typing shortcuts, emitting a controlled markdown string via @change; render stored markdown with the markdown piece

Multi-Select

Filterable tag / multi-value combobox with removable chips, ranked filtering, and snippet-customizable option content

Number Field

Accessible numeric form field with min/max/step, increment/decrement buttons, arrow/PageUp-Down keyboard, precision formatting, and label/hint/error

Password Field

Password input with an in-input show/hide visibility toggle and hint/error state

Quantity Input

E-commerce stepper: decrement/increment buttons around a number input, clamped to [min, max] with a configurable step and a real zero minimum; wraps the @magic-spells/quantity-input web component rather than porting it

Radio Group

Config-first radio group rendered from an options array, with native arrow-key nav, per-option hints/disabled, and vertical or horizontal layout

Rating

Star rating — read-only display with half-star support and an interactive radiogroup input mode with keyboard nav and hover preview

Rich Text Editor

Rich text editor on Tiptap/ProseMirror — one Toolbar row (block-style picker for Normal text / Heading 1-4, bold/italic/underline/strike, alignment, lists, blockquote, code block, links), or chrome="blocks" for a Notion-style page (hover handle, / commands, selection bar); optional images (uploadImage) and pasted-URL link previews (fetchLinkPreview); emits a controlled Shopify-style JSON document tree via @change; render stored docs with the rich-text piece

Search Field

Search input with a leading magnifier icon and a trailing clear button; submits on Enter

Select

Listbox-pattern select as a compound family — options, group labels and dividers as real children, with typeahead, roving keyboard focus, disabled options, an optional-controlled panel and a replaceable trigger slot; wraps the @magic-spells/select-dropdown web component rather than porting it

Slider

Touch-friendly single-value or dual-thumb range slider with gesture arming, keyboard support, tick marks and labels, and optional form inputs

Split Button

Primary action button fused to a dropdown caret that opens a menu of secondary actions — the classic Save ▾ pattern, as a compound family over dropdown-menu with Button's variants and sizes

Switch

Toggle switch on a native checkbox with role=switch, optional label and hint

Tags Input

Free-text tag entry — type + Enter to add, Backspace to remove, each tag removable; controlled string-array value (no predefined options)

Textarea

Labeled multi-line text input with hint/error and ARIA wiring, mirroring Field

Time Picker

Field-shaped trigger + popover with hour/minute/second listbox columns and 12/24h display: controlled HH:MM value, optional-controlled open, label/hint/error, locale-aware trigger label

Alert Dialog

Confirm/cancel modal for destructive or consequential actions on the native <dialog role="alertdialog"> element — inert backdrop, no close X, Escape cancels, initial focus on Cancel; wraps the @magic-spells/dialog-panel web component rather than porting it

Bottom Sheet

Native-dialog bottom sheet dragged, flicked and dismissed with a finger, with optional height snap points that settle on a velocity-aware spring, a pinned footer, inset mode and a dismissal-tracking scrim; wraps the @magic-spells/bottom-sheet web component rather than porting it

Command

Command palette with filtered, grouped, keyboard-driven quick actions and snippet-customizable option content; wraps the @magic-spells/dialog-panel web component for the overlay

Context Menu

Right-click context menu — a compound family over the shared dropdown-panel base that opens at the pointer, clamped and flipped into the viewport, with dropdown-menu's rows re-exported and a touch long-press gesture

Dialog

Centered modal on the native <dialog> element — focus trapping, an Escape/backdrop dismiss policy, title/description ARIA wiring, size caps, an optional close button and header/footer slots; wraps the @magic-spells/dialog-panel web component rather than porting it

Dropdown Menu

Menu-button dropdown — a compound family over the shared dropdown-panel base, with real role="menu" semantics, typeahead, submenus, link rows, groups, labels, separators, shortcut hints, and disabled and danger items

Dropdown Panel

Shared base family for trigger↔panel overlays — hover/click disclosure with CSS-positioned panels, nested submenus, full-width mega panels, one-open-at-a-time arbitration, and the full arrow/Escape keyboard model; wraps the @magic-spells/dropdown-panel web component rather than porting it

Hover Card

Hover-triggered preview card for link previews and user cards — a compound family over the shared dropdown-panel base, with open/close delays, the package's hover bridge keeping the card hoverable, and optional-controlled open

Menubar

Desktop-app-style horizontal menu bar — a compound family over the shared dropdown-panel base, with hover-switching menus, nested submenus, shortcut hints, separators, labels, link rows, and disabled and danger items

Popconfirm

Inline confirmation bubble anchored to a trigger — title, optional description, confirm/cancel actions and a danger variant, over the shared dropdown-panel base; wraps the @magic-spells/dropdown-panel web component rather than porting it

Popover

Click-toggled floating panel with arbitrary content — a compound family over the shared dropdown-panel base, with press-to-toggle latching, outside-press and Escape dismissal, focus return, and CSS-only end alignment

Sheet

One component that is a snap-point bottom sheet on phones and morphs — live, in place, while open — into a side drawer or centered dialog past the breakpoint, with spring-physics snaps, drag and flick gestures, a dismiss policy, entrance and exit effects, and an optional container-transform flight out of the trigger that opened it; wraps the @magic-spells/sheet web component rather than porting it

Tooltip

Hover/focus text hint with delay and four placements

Alert

Inline callout with default/brand/danger variants, leading icon, and optional title

Avatar

Image avatar with initials fallback on a deterministic color, or a neutral person glyph

Avatar Group

Overlapping stack of avatars from an array, with a +N overflow chip past a max count

Badge

Status chip with default/brand/danger/outline variants

Meter

Semantic gauge (role=meter) showing a value within low/optimum/high bands with sentiment color, a label, and a formatted value

Progress

Determinate or indeterminate progress bar with optional label and percentage, in two sizes

Shimmer Text

Pending-state text with an ink shimmer — a wave of full ink passes through muted text, CSS-only, with a slow pulse under reduced motion

Skeleton

Pulsing loading placeholder with text/circle/block shapes

Spinner

Inline loading indicator in seven CSS-only designs — the rotating ring, stepped activity ticks, a squircle trace, typing dots, Puzzle's snapping tiles, an AI spark and a live heartbeat — each a single role=status span in sm/md/lg

Toast

Imperative toast() API with a Toaster host — variants, pausable auto-dismiss, corner positioning

Area Chart

Responsive, config-first area chart with overlapping or stacked bands, full-strength edge lines, a nearest-x hover crosshair, tooltip, legend, and an sr-only data table

Bar Chart

Config-first categorical bar chart — single, grouped, or stacked series with a legend, per-bar hover tooltips, responsive width, and an sr-only data table

Line Chart

Responsive, config-first multi-series line chart with a nearest-x hover crosshair, tooltip, legend, and an sr-only data table

Pie Chart

Config-first part-to-whole donut/pie — fixed slot colors, always-on legend, per-slice hover tooltips with percent, optional donut-center total, 8-slice folding, and an sr-only data table

Progress Ring

Determinate circular progress ring — SVG dashoffset sweep from 12 o'clock with centered percentage, sized and tinted via tokens

Sparkline

Tiny inline trend line — no axes, grid, or tooltip; color inherits from the text token, with an optional soft area fill

Stat Card

KPI tile: label, preformatted value, optional signed delta with sentiment coloring, and an optional trend Sparkline

Chat Attachment

File attachment chip — type-inferred icon, truncated filename, size caption, optional download link and removable mode

Chat Message

Chat message row — avatar with initials fallback, author/time meta, sent/received bubble variants, start/end alignment, compact follow-up mode, and an attachments slot

Chat Scroller

Stick-to-bottom chat viewport — role=log region that follows new content while pinned, with a jump-to-latest pill once the reader scrolls up

Accordion

Coordinated disclosure family — single or multiple open, with exclusivity, height animation and every ARIA attribute coming from the collapsible-content web component; panel bodies take arbitrary markup

Aspect Ratio

Fixed width:height ratio box that constrains slotted media or content to a chosen aspect

Breadcrumb

Config-first breadcrumb trail rendered from an items array, with a chevron separator and the final crumb as aria-current page text

Card

Presentational container with optional title/description header, default body slot, and a footer slot for actions

Carousel

Accessible scroll-snap carousel — arrows, dots, keyboard, autoplay; slides are slot children

Code

Code panel with syntax highlighting (highlight.js, GitHub light/dark palette, Puzzle template grammar), optional line-number gutter, copy button, and a collapsible View Code preview that animates open

Collapsible

Animated disclosure family — a button and a height-animating region with the full ARIA wiring, distance-derived duration and reduced-motion behaviour; wraps the @magic-spells/collapsible-content web component rather than porting it

Data Table

Interactive data table over the presentational Table conventions — optional-controlled sorting, row selection with select-all, pagination, and caller-owned header/body cell snippets

Description List

Semantic key-value description list (<dl>/<dt>/<dd>) rendered from an items array, for detail panels, summaries, and spec sheets — stacked or inline two-column layout, optional row dividers, two sizes

Empty

Empty-state block for no-results moments — optional icon slot, title, description, and action slot in a centered muted column

Hamburger

Menu button whose three bars fold into an X — converge or twist, CSS-only two-phase motion on the individual translate/rotate properties, aria-expanded/aria-controls, optional-controlled open, an animate={false} instant swap, and bars in currentColor at sm/md/lg

Image Zoom

Pinch-to-zoom and pan viewer for a single image — two-finger pinch, drag-to-pan, double-tap/double-click toggle, min/max scale with rubber-band resistance and animated snap-back, and value-first change/zoomStart/zoomEnd callbacks; wraps the @magic-spells/image-zoom web component rather than porting it

Kanban

Config-first controlled Kanban board — pointer and keyboard card movement, insertion placeholders, aria-live announcements, a value-first @move intent, and caller-owned card and column-header snippets that preserve piece-owned drag mechanics

Kbd

Keyboard-key hint rendered in a native <kbd> with a keycap shadow

Markdown

Renders a markdown string as semantic HTML — a marked-lexer token walker building DOM with createElement/createTextNode, so markdown can never inject markup; CommonMark plus GFM tables, task lists, and strikethrough

Marquee

Continuously scrolling ticker of slot content — seamless rAF loop with pause-on-hover, drag-to-scrub, direction, speed, gap and edge-fade props, and prefers-reduced-motion respect; wraps the @magic-spells/scrolling-content web component rather than porting it

Navigation Menu

Horizontal site navigation with hover/click flyout panels of link cards — a compound family over the shared dropdown-panel base, with disclosure-pattern semantics, nested submenus, full-width mega panels with headed columns, and per-link active state

Pagination

Controlled page navigator — windowed page numbers with first/last, ellipses, and disabled-at-the-ends prev/next icon buttons

Panel Stack

Nested-panel navigation family — drill-down menus, settings flows and wizards, with the stack, the slide or stack transitions, inert handling, focus restoration, declarative push/pop triggers and Escape composition coming from the panel-stack web component

Rich Text

Renders a stored rich text document — RichTextEditor's Shopify-style JSON tree, images and link previews included (sources via resolveImage) — as semantic HTML with the shared typography classes (compact spacing to match chrome="blocks"); XSS-safe tree walker with zero npm dependencies

Scroll Area

Overlay-scrollbar wrapper — native scrolling with a fading, draggable custom thumb in vertical, horizontal, or both orientations

Scroll Stack

Natively scrolling list whose items animate at the scrollport edges instead of clipping — sticky stack handoff, vertical or horizontal, scroll snapping, responsive per-view item sizing, and effects driven by a progress custom property; wraps the @magic-spells/scroll-stack web component rather than porting it

Separator

Hairline divider in horizontal or vertical orientation

Sidebar

Config-first app-shell navigation rail — grouped links with icons and badges, animated collapsible submenus, active-route highlighting, an optional-controlled collapsed icon-only mode with header/footer slots, and a `rail` variant that paints it with the shell roles (bg-rail, text-rail-ink) as the frame's rail

Split Text

Text reveal that splits a headline or paragraph into words, characters or detected lines and animates each unit in with a CSS stagger — eight effects, scroll/load/manual triggers, a replay token, and start/complete callbacks; wraps the @magic-spells/split-text web component rather than porting it

Stepper

Numbered step-progress indicator — horizontal or vertical, complete/current/upcoming states, optional clickable steps

Table

Config-first styled semantic table rendered from a columns schema and an array of row objects, with per-column alignment, an optional caption, and an empty state — the presentational tier, not a data grid (no sorting, selection, or virtualization)

Tabs

Accessible tablist family — underline, segmented-pill or button variant, with the roving tabindex, arrow/Home/End keyboard model, disabled-tab skipping and every ARIA attribute coming from the tab-group web component; panels are real members whose bodies take arbitrary markup

Timeline

Vertical event timeline from an items array — dot/connector rail with per-item title, time, description, optional status color, and optional icon or step-number markers

Toggle

Two-state pressed button (aria-pressed) for tool states, with default/outline variants and three sizes

Toggle Group

Config-first joined row of pressed-state buttons (single or multiple select) with a11y group semantics

Toolbar

Horizontal or vertical grouped controls container with role=toolbar and roving-tabindex arrow-key navigation across buttons, toggles, and separators

Tree

Config-first WAI-ARIA tree view — nested nodes with expand/collapse, roving-tabindex keyboard nav, controlled selection, and a node snippet for caller-owned label rendering

Virtual List

Windowed vertical list for large fixed-height collections — native scrolling, configurable viewport and overscan, keyed rows, and a caller-owned row snippet

Appearance Picker

Controlled palette + style picker — theme cards that are live miniatures of the shell painted in each palette (scoped data-scheme), and a Dark / Dim / Mixed / Light / System style group, each a live miniature too; fires @change({ scheme, mode }) for the app to persist with the appearance module

Masonry

Responsive CSS-columns masonry/gallery grid — slot children flow into a responsive column count with a gap prop

Split Panel

Resizable pane group family — horizontal or vertical, any number of panes, with the drag and keyboard resizing, min/max constraints, snap points, nesting and localStorage persistence coming from the split-panel web component