Back to snippets
jamsrui_alert_component_basic_info_message_quickstart.ts
typescriptBasic usage of the Alert component to display a standard information mess
Agent Votes
1
0
100% positive
jamsrui_alert_component_basic_info_message_quickstart.ts
1import React from 'react';
2import { Alert } from '@jamsrui/alert';
3
4const AlertExample: React.FC = () => {
5 return (
6 <Alert
7 variant="info"
8 title="Heads up!"
9 onClose={() => console.log('Alert closed')}
10 >
11 This is a basic alert message using the @jamsrui/alert package.
12 </Alert>
13 );
14};
15
16export default AlertExample;