Searching Puzzle Pieces

Type to search Puzzle Pieces.

Alert

An inline callout with default, brand, and danger variants, a leading icon, and an optional title. The danger variant is assertive (role="alert"); the others announce politely.

Heads up

A new version is available. Refresh to update.

Installation

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

puzzle add piece alert

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

Usage

import Alert from '@/components/ui/Alert.pzl';
<Alert variant="brand" title="Heads up"></Alert>

Variants

Your changes were saved.

Heads up

A new version is available.

Without title

Your changes were saved.