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.
Payment failed
Update your card to continue.
Without title
Your changes were saved.
We couldn't reach the server. Retrying…