UI
Callout
Contextual callout blocks for info, warning, success, error, and tip messages.
Quick Preview
Tip
Use this component to highlight important information.
Installation
npm install lucide-react
// Copy component fromsrc/components/ui/Callout.tsx
Usage
import Callout from '@/components/ui/Callout'<Callout variant="warning" title="Important">Your session will expire in 5 minutes.</Callout>
Examples
All Variants
Info
Informational callout
Success
Action completed successfully.
Warning
Double-check before proceeding.
Error
Something went wrong.
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'info' | 'warning' | 'success' | 'error' | 'tip' | 'info' | Visual style |
title | string | - | Bold heading above content |
children* | React.ReactNode | - | Callout body content |