Skip to content

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

Terminal
pnpm add @elsikora/keystone-ui-kit

Usage

Import
import { Alert } from "@elsikora/keystone-ui-kit";
docs/alert/default.example.tsx
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.

API reference

Alert

PropTypeDefaultDescription
variant"default" | "destructive""default"Information (role=status) or an error (role=alert).
errorLabelstring"Error"The word before an error's title.

Notes

  • An error is told apart without colour: the mark, the word, and the border.