Skip to Content
NarakUI

Alert

An inline callout for information, warnings, success, and errors.

Variants

warning and destructive render with role="alert"; default and success render with role="status". Pass role to override. default uses the secondary background, so place it on a primary surface such as a card, dialog, or page.

How this visibility score works

It reflects tracked prompts in your category over the selected range.

Citation export is ready

Your CSV finished generating and is ready to download.

Compositions

Every part is optional. Wrap a title and description in AlertContent so they stack.

Select a category to compare brands

IndexNow pings supported engines when you publish.

Installation

pnpm dlx shadcn@latest add @narakui/alert

Add "@narakui": "https://ui.narakcode.dev/r/{name}.json" to components.json, or install directly from https://ui.narakcode.dev/r/alert.json.

Alert Properties

PropTypeDefaultDescription
variant'default' | 'warning' | 'destructive' | 'success''default'Surface tint and icon color. AlertIcon inherits it.
rolestring—Overrides the live-region role chosen from the variant.
classNamestring—Additional classes for the container.

AlertIcon Properties

PropTypeDefaultDescription
variant'default' | 'warning' | 'destructive' | 'success'—Overrides the icon tint from the enclosing Alert.