← Back to components
Alert
An alert component for displaying important messages
Feedback
Created by David Lee
4.5 rating
321 downloads
Preview
Heads up!
You can add components and dependencies to your app using the cli.
Error
Your session has expired. Please log in again.
Warning
This action may affect your data. Please proceed with caution.
Success
Your changes have been saved successfully.
How to use
import { GrainAlert } from "@/components/demos/grain-alert"
export default function MyComponent() {
return (
<div>
<GrainAlert />
</div>
)
}
Note: Make sure you have the required dependencies installed and the necessary UI components imported in your project. The component uses Tailwind CSS for styling and may require additional setup based on your project configuration.