Alert

Newfeedback

Inline status message for confirmations, warnings, errors, and neutral information.

import { Alert } from '@/components/forge'

Preview

Alert

Component saved

Your changes are ready to reuse.

Published

The design token export completed.

Review needed

One prop value may need attention.

Code Example

Props

PropTypeDefaultRequiredDescription
variant'info' | 'success' | 'warning' | 'danger''info'NoVisual tone and default icon
titleReact.ReactNode-NoOptional alert heading
iconReact.ReactNode-NoCustom icon override
childrenReact.ReactNode-NoAlert body content

Variants

infosuccesswarningdanger

Accessibility

  • Uses role="status" for non-interruptive announcements
  • Color is paired with icon and text, not used alone

Related Components