Searching Puzzle Pieces

Type to search Puzzle Pieces.

Button

A button with five variants, three sizes, and a loading state. Fires a @press callback; disabled and loading both block it.

Installation

Copy the piece into your app — it compiles with your build and the code is yours:

puzzle add piece button

Requires the pieces.css tokens merged into your app styles (see Introduction).

Usage

import Button from '@/components/ui/Button.pzl';
<Button variant="primary" @press={ getStarted }>Get started</Button>

Variants

Sizes

Disabled and loading