← DOCS
neon

NeonAlert

Neon notification/alert component with variants.

npx chaos add neon-alert

PREVIEW

ALERT

USAGE

import { NeonAlert } from '@/components/chaos/neon/neon-alert';

<NeonAlert title="Info">This is an info message</NeonAlert>
<NeonAlert variant="error" dismissible onDismiss={handleClose}>
  Critical error occurred
</NeonAlert>

PROPS

PropTypeDefault
childrenAlert message
ReactNode-
variantAlert type
"info" | "success" | "warning" | "error""info"
titleAlert title
string-
dismissibleShow close button
booleanfalse
onDismissClose callback
() => void-