Skip to main content
Urbicon UI
source

Alert

Persistent inline notifications for status, warnings, errors, and informational messages with icons, actions, and dismissal.

Loading...
Loading syntax highlighting...

01 Examples

With Icon

Use the `icon` snippet to convey intent visually alongside the title and message.
Loading...
Loading syntax highlighting...

With Actions

Alerts can include action buttons for immediate user response.
Loading...
Loading syntax highlighting...

Dismissible

Click the close button to dismiss – click Reset to bring them back.
Loading...
Loading syntax highlighting...

02 Customization

Gradient Banner

Use slotClasses to create eye-catching promotional banners.
Loading...
Loading syntax highlighting...

Glassmorphism

Translucent alerts over rich backgrounds.
Loading...
Loading syntax highlighting...

Terminal / Monospace

Developer-friendly alerts with a terminal aesthetic.
Loading...
Loading syntax highlighting...

Accent Border

Minimal left-border style that works well in content-heavy layouts.
Loading...
Loading syntax highlighting...

03 Accessibility

Built-in ARIA

Renders with role="alert", ensuring screen readers announce the content as a live region. Dismissible alerts include a close button with aria-label="Dismiss".

Keyboard

The dismiss button is focusable via Tab and activates with Enter / Space. Focus-visible ring follows the component's intent color for clear contrast.

Reduced Motion

Transition durations use the --blocks-duration-fast token, which is automatically shortened when prefers-reduced-motion is enabled.

04 API Reference

15 props
15 props

No matching properties

No matching properties

05 Installation

Import

Loading...
Loading syntax highlighting...