mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-11 05:54:15 +01:00
18 lines
443 B
TypeScript
18 lines
443 B
TypeScript
|
import React from 'react';
|
||
|
|
||
|
interface FabAlertProps {
|
||
|
level: 'info' | 'warning' | 'danger',
|
||
|
className?: string,
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* This component shows a styled text paragraph, useful to display important information messages.
|
||
|
*/
|
||
|
export const FabAlert: React.FC<FabAlertProps> = ({ level, className, children }) => {
|
||
|
return (
|
||
|
<div className={`fab-alert fab-alert--${level} ${className ? className : ''}`}>
|
||
|
{children}
|
||
|
</div>
|
||
|
)
|
||
|
};
|