1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-10 04:54:14 +01:00
2021-07-01 12:34:10 +02:00

18 lines
433 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 || ''}`}>
{children}
</div>
);
};