Feedbacksrc/components/ui/alert.tsx
Alert
Displays a callout for user attention.
Preview
Payment successful
Your payment of $29.99 has been processed. A receipt has been sent to your email address.
New feature available
We've added dark mode support. You can enable it in your account settings.
Payment failed
Your payment could not be processed. Please check your payment method and try again.
Dark mode is now available
Enable it under your profile settings to get started.
Your subscription will expire in 3 days.
Renew now to avoid service interruption or upgrade to a paid plan to continue using the service.
Installation
Copy the component source into your project with `degit`. This port is intentionally not distributed as an npm package.
bunx degit https://github.com/LiasCode/shadcn-preact/src/components/ui#main ./src/components/uiUsage
import { Alert } from "@/components/ui/alert"
export function Example() {
return <Alert>Alert</Alert>
}API Reference
ExportPurpose
AlertComposable part exported by `@/components/ui/alert`.