About
A dismissible alert banner for surfacing status messages, warnings, or announcements with an icon, title, description, and optional actions.
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,
AlertIcon,
AlertTitle,
AlertDescription,
AlertAction,
} from "@/components/ui/alert";
import { Button } from "@appica/ui-react/button";
import { AlertTriangleFilled } from "@appica/icons-react";
export default function AlertActions() {
return (
<div className="w-full max-w-md">
<Alert variant="warning">
<AlertIcon>
<AlertTriangleFilled />
</AlertIcon>
<AlertTitle>Your trial ends in 3 days</AlertTitle>
<AlertDescription>
Upgrade now to keep access to your projects and team members.
</AlertDescription>
<AlertAction>
<Button
variant="ghost"
size="sm"
className="hover:before:bg-background"
>
Maybe later
</Button>
<Button size="sm">Upgrade</Button>
</AlertAction>
</Alert>
</div>
);
}







