Alert
The Alert component accepts the following parameters:
interface Props {
type: 'success' | 'error' | 'warn' | 'info';
useCloseButton?: boolean;
className?: string;
}
Types
Info
Info Alert
<Alert type='info'>
Info Alert
</Alert>
Success
Success Alert
<Alert type='success'>
Success Alert
</Alert>
Warn
Warn Alert
<Alert type='warn' useCloseButton={true}>
Warn Alert
</Alert>
Error
Error Alert
<Alert type='error' useCloseButton={true}>
Error Alert
</Alert>