Shadcn UI — Alert
Instructions
ShadAlert displays a callout for user attention. Use default constructor for standard alerts, ShadAlert.destructive for errors or destructive actions.
Primary / default
ShadAlert(
icon: Icon(LucideIcons.terminal),
title: Text('Heads up!'),
description: Text('You can add components to your app using the cli.'),
)
Destructive
ShadAlert.destructive(
icon: Icon(LucideIcons.circleAlert),
title: Text('Error'),
description: Text('Your session has expired. Please log in again.'),
)