@trussworks/react-uswds
Version:
React USWDS 3.0 component library
15 lines (14 loc) • 584 B
TypeScript
import { default as React } from 'react';
import { HeadingLevel } from '../../types/headingLevel';
type AlertProps = {
type: 'success' | 'warning' | 'error' | 'info';
heading?: React.ReactNode;
headingLevel: HeadingLevel;
children?: React.ReactNode;
cta?: React.ReactNode;
slim?: boolean;
noIcon?: boolean;
validation?: boolean;
};
export declare const Alert: ({ type, heading, headingLevel, cta, children, slim, noIcon, className, validation, ...props }: AlertProps & React.HTMLAttributes<HTMLDivElement>) => React.ReactElement;
export default Alert;