UNPKG

@pagopa/mui-italia

Version:

[Material-UI](https://mui.com/core/) theme inspired by [Bootstrap Italia](https://italia.github.io/bootstrap-italia/).

18 lines (17 loc) 711 B
/// <reference types="react" /> import { AlertProps as MUIAlertProps } from '@mui/material/Alert'; type ButtonCTA = { label: string; } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>; type LinkCTA = { label: string; } & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'children'>; type AlertCTA = ButtonCTA | LinkCTA; export type AllowedAlertSeverity = 'success' | 'info' | 'warning' | 'error'; interface MIAlertProps extends Pick<MUIAlertProps, 'severity'> { title?: string; description: string; action?: AlertCTA; } export declare const MIAlert: ({ severity, title, description, action, ...rest }: MIAlertProps) => import("react/jsx-runtime").JSX.Element; export {};