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