Alert

AccordionAlert Dialog

Four intents, with titles, actions and dismiss.

Heads up

A new version is available.

Payment received

Your invoice has been paid.

Installation

pnpm add krz-ui

Usage

import { Alert } from "krz-ui";
<Alert variant="success" title="Saved" onClose={dismiss}>
  Your changes are live.
</Alert>

API Reference

PropTypeDescription
variant"info" | "success" | "warning" | "danger"Visual intent.
titleReactNodeBold heading line.
iconReactNodeOverride the default icon.
actionReactNodeAction rendered on the right, e.g. a button.
onClose() => voidShows a dismiss button when provided.
className / style / ref—All go to the outer element. See Customization.
classNames{ icon?, content?, title?, message?, action?, close? }Extra classes for inner parts.