Lucent UI
NavLinkAlertCard
✦ LLM-ready

Alert

molecule

Full-width contextual message for info, success, warning, and error states. Supports an optional title and a dismissible variant.

"Add an Alert from lucent-ui with variant="warning" and a dismissible button. Show it conditionally based on a boolean state."

Usage

React / JSX
import { Alert } from 'lucent-ui'

<Alert title="Alert" title="Heads up">
  This is an alert message with additional details.
</Alert>

Installation

pnpm add lucent-ui

API Reference

Alert props — * required

PropTypeDefaultDescription
variant*"info" | "success" | "warning" | "danger"Semantic colour variant.
titlestringBold heading above the message body.
onDismiss() => voidIf provided, renders a close button.
children*React.ReactNodeAlert message body.