About
A status alert box with four tones (info, success, warning, danger), an optional bold heading, an icon slot, and an optional dismiss button — ported from the Starbase web component by zweiundeins.
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 from "@/components/ui/alert";
export default function AlertDemo() {
return (
<div className="grid gap-3 w-full max-w-md">
<Alert heading="Heads up">Telemetry resumes in 30 seconds.</Alert>
<Alert variant="success" heading="Launch successful!">
Your component is live.
</Alert>
<Alert variant="warning" heading="Low fuel">
Consider a gravity assist.
</Alert>
<Alert variant="danger" heading="Hull breach">
Seal deck 7 immediately.
</Alert>
</div>
);
}








