UNPKG

@vtex/admin-ui

Version:

> VTEX admin component library

36 lines (35 loc) 828 B
import type { ComponentPropsWithRef, ReactNode } from 'react'; /** * Component to display relevant information within an admin page */ export declare const Alert: import("@vtex/admin-ui-react").AdminUIJsxElement<"div", AlertOptions, { sticky: { true: any; false: any; }; visible: { true: any; false: any; }; tone: { critical: any; positive: any; warning: any; info: any; }; fluid: { true: any; false: any; }; }>; export interface AlertOptions { /** * Alert Icon */ icon?: ReactNode; /** * action to take on click dismiss buttton */ onDismiss?: () => void; } export declare type AlertProps = ComponentPropsWithRef<typeof Alert> & AlertOptions;