About
Displays a callout for user attention, such as a success message, warning, or error.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Alert to your project and fits it to your theme.
Code
How Alert is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Alert, AlertContent, AlertDescription, AlertIcon, AlertTitle } from '@/components/ui/alert-1';
import { RiAlertFill } from '@remixicon/react';
export default function AlertDemo() {
return (
<div className="flex flex-col gap-5 p-10 w-full mx-auto max-w-[600px] h-screen justify-center items-center">
<Alert variant="primary" close={true}>
<AlertIcon>
<RiAlertFill />
</AlertIcon>
<AlertContent>
<AlertTitle>Example Alert Title</AlertTitle>
<AlertDescription>
Insert the alert description here. It would look better as two lines of text.
</AlertDescription>
</AlertContent>
</Alert>
<Alert variant="destructive" appearance="light" close={true}>
<AlertIcon>
<RiAlertFill />
</AlertIcon>
<AlertContent>
<AlertTitle>Example Alert Title</AlertTitle>
<AlertDescription>
Insert the alert description here. It would look better as two lines of text.
</AlertDescription>
</AlertContent>
</Alert>
</div>
);
}








