Lyse UI
v1.1

Alert

The Alert component displays an inline message to communicate important feedback within a page. It helps users understand status changes, errors, or required actions without interrupting their workflow.

Add to v0.dev
tsx

Variants

Each variant has its own background, left accent border, and auto icon.

With Action

Pass an action prop to render a button. Use actionPlacement to control layout.

Dismissible

Pass onDismiss to render a close button. The caller controls visibility.

Custom Icon

Override the auto icon with any ReactNode.

Without Icon

Pass icon={null} to suppress the icon entirely.

Title Only

AlertDescription is optional — the alert works with just a title.