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