TailwindAdmin can be used in personal & commercial projects.

Learn more

NiceAdmin can be used in personal & commercial projects.

Learn more

Ready-to-Use Components Powered by Flowbite, ShadCN & Headless UI

Component Library

Browse and explore components

Alert

An Alert is a UI component used to display important messages or notifications to the user.

Default Alert

Light Default Alert

Alert With Icon

Light Alert With Icon

Dismissible Alert

Light Dismissible Alert

Rounded Alert

Light Rounded Alert

Light Border Accent

Additional Content

All Options

API ( Alert )
PropDescriptionTypeDefault

color

Sets the color scheme of the alert box.

'primary' | 'success' | 'warning' | 'green'

'info'

icon

Adds a custom icon to the alert box.

'HiInformationCircle'

-

onDismiss

Callback function triggered when the dismiss button is clicked.

onDismiss={() => alert('Alert dismissed!')}

-

rounded

Applies rounded corners to the alert box.

boolean

false

withBorderAccent

Adds a border accent to the alert box.

boolean

false

additionalContent

Allows additional content to be added inside the alert box.

React.ReactNode

null