/** * Alert component for displaying notifications. * * @package GetMD * @since 1.0.1 */ import * as React from 'react'; export interface AlertProps extends React.HTMLAttributes { variant?: 'default' | 'destructive' | 'success' | 'warning' | 'info'; } const Alert = React.forwardRef( ({ className = '', variant = 'default', ...props }, ref) => { const variantClasses = { default: 'smx-bg-muted smx-border-border smx-text-foreground', destructive: 'smx-bg-destructive-light smx-border-destructive/30 smx-text-destructive', success: 'smx-bg-success-light smx-border-success/30 smx-text-success', warning: 'smx-bg-warning-light smx-border-warning/30 smx-text-warning-foreground', info: 'smx-bg-info-light smx-border-info/30 smx-text-info', }; return (
); } ); Alert.displayName = 'Alert'; const AlertDescription = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className = '', ...props }, ref) => (
)); AlertDescription.displayName = 'AlertDescription'; export { Alert, AlertDescription };