UNPKG

@wazespace/wme-react-components

Version:

A package with useful replications of the Waze Map Editor components to use in userscripts

22 lines 653 B
import { ReactElement, ReactNode } from 'react'; export type WzAlertVariant = 'warning' | 'danger' | 'success' | 'tip' | 'info'; export type WzAlertLevel = 'page' | 'product'; type WzAlertActionProps = { actionText: string; onAction(): void; } | { actionText?: never; onAction?: never; }; type WzAlertProps = { children: ReactNode; variant?: WzAlertVariant; customIcon?: ReactElement; level?: WzAlertLevel; multiline?: boolean; dismissText?: string; onDismiss?(): void; } & WzAlertActionProps; export declare function WzAlert(props: WzAlertProps): JSX.Element; export {}; //# sourceMappingURL=WzAlert.d.ts.map