Skip to content

Alert

The Alert component provides a flexible UI element for displaying alert messages. It is composed of several subcomponents such as Alert.Root, Alert.Title, Alert.Description, and Alert.Link to offer a structured and customizable interface.

Installation

import { Alert } from '@harnessio/ui/components'
//...
return (
<Alert.Root
theme="info"
expandable
dismissible
>
<Alert.Title>My Alert</Alert.Title>
<Alert.Description>This is the description of the alert</Alert.Description>
<Alert.Link to="/someplace">
Learn more
</Alert.Link>
</Alert.Root>
)