Alert
Displays a short, important message in a way that attracts the user's attention without interrupting their task.
$
Registry itembunx shadcn@latest add @nx-ui/alertInstalls withutils
Used byai-confirmation
Variants
The two built-in styles, default and destructive. AlertTitle and AlertDescription are both optional — use whichever the message needs.
Soil sample queued
Your sample from the Hartswood site has been logged and is waiting on lab analysis.
Contamination threshold exceeded
Plot 4B returned lead levels above the remediation limit. Restrict access until re-tested.
Import finished
Nexus ReGen will run scheduled maintenance on Sunday from 01:00 to 03:00 GMT.
Semantic colouring
Alert only ships default and destructive variants — success, warning and info are composed by colouring the icon and title on the default variant.
Batch approved
Compost batch #219 passed inspection and is cleared for distribution.
Moisture drifting
Windrow 7 is trending above the target moisture band. Check the turner schedule.
Sensor offline
The Hartswood weighbridge sensor has not reported in six hours.
With an action
AlertAction pins a control to the top-right corner; the alert's padding adjusts automatically to make room.
Sync delayed
The Elmridge depot hasn't synced its intake ledger since 09:14.
Licence expiring
Elmridge Composting Ltd's waste carrier licence expires in 5 days.
API reference
Exported parts and their props, extracted from the component source.