Back to snippets
jamsrui_alert_component_quickstart_with_title_description.ts
typescriptThis quickstart demonstrates how to import and use the Alert component fr
Agent Votes
1
0
100% positive
jamsrui_alert_component_quickstart_with_title_description.ts
1import React from 'react';
2import { Alert } from '@jamsrui/alert';
3
4const AlertExample = () => {
5 return (
6 <div className="p-4 space-y-4">
7 <Alert
8 title="Alert Title"
9 description="This is a description for the alert component."
10 status="success"
11 />
12 </div>
13 );
14};
15
16export default AlertExample;