Alert

Displays a short, important message in a way that attracts the user's attention.

Installation

Import the component from the passport-ui package.

components/example.tsx
1import { Alert } from "passport-ui";
2import { InfoIcon } from "lucide-react";

Usage

Basic example showing how to use the component.

components/example.tsx
1<Alert
2 title="Heads up!"
3 description="You can add components and dependencies to your app using the cli."
4 icon={<InfoIcon />}
5/>
6
7{/* With variants */}
8<Alert
9 variant="warning"
10 title="Warning"
11 description="Please review this information carefully before proceeding."
12 icon={<AlertTriangleIcon />}
13/>

Additional resources

Documentation and examples are available in Storybook.