Toast
Toasts communicate non-blocking feedback. In Nuxt / PLAI use useToastUI() / Nuxt UI toast.
Live examples
Section titled “Live examples”Severity variants
Section titled “Severity variants”Sync started
Saved
Quota almost reached
Upload failed
Info and warning tints use CI link blue and brand orange. Success and error use Nuxt UI semantic green/red.
<div class="ci-toast ci-toast--success" role="status"> <div> <p class="ci-toast__title">Saved</p> <p class="ci-toast__message">Your changes were applied.</p> </div></div>Accessibility
Section titled “Accessibility”- Success / info:
role="status"(polite live region). - Errors:
role="alert"when immediate attention is required. - Keep copy short; link to details only when necessary.
- Auto-dismiss timing: ≥5 s for non-critical messages; persist errors until dismissed.
When to use
Section titled “When to use”| Variant | Use | Source |
|---|---|---|
ci-toast--info |
Neutral progress or background activity | CI link blue tint |
ci-toast--success |
Completed actions | Nuxt UI green |
ci-toast--warning |
Reversible issues or approaching limits | CI brand orange tint |
ci-toast--error |
Failed operations | Nuxt UI red |