Feedback
Alert
A notice inside the page: information, or an error with what to do next.
Release uploaded
The checks run now; the release is playable when they pass.
Installation
pnpm add @elsikora/keystone-ui-kitUsage
import { Alert } from "@elsikora/keystone-ui-kit";import { Alert, AlertDescription, AlertTitle } from "@elsikora/keystone-ui-kit";
export default function AlertDefaultExample() { return ( <Alert> <AlertTitle>Release uploaded</AlertTitle> <AlertDescription>The checks run now; the release is playable when they pass.</AlertDescription> </Alert> );}Examples
Information
Release uploaded
The checks run now; the release is playable when they pass.
Error
An error has a mark, the word Error, a solid strong border and role=alert.
Error: The upload failed
The archive has no math file.
API reference
Alert
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "destructive" | "default" | Information (role=status) or an error (role=alert). |
errorLabel | string | "Error" | The word before an error's title. |
Notes
- An error is told apart without colour: the mark, the word, and the border.