welcome-ui
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
26 lines (25 loc) • 1.02 kB
TypeScript
import { default as React } from 'react';
import { ToastPosition } from 'react-hot-toast/headless';
import { TextProps } from '../Text';
import { GrowlProps } from './Growl';
import { SnackbarProps } from './Snackbar';
export type ToastOptions = {
duration?: number;
id?: string;
onClose?: () => void;
position?: ToastPosition;
};
type NotificationsProps = {
pauseOnHover?: boolean;
};
export declare const Notifications: React.FC<NotificationsProps>;
export declare const toast: (component: JSX.Element, options?: ToastOptions) => string;
export declare const remove: (id?: string) => void;
export declare const dismiss: (id?: string) => void;
export declare const Toast: {
Growl: import('../System').CreateWuiComponent<"div", GrowlProps>;
Snackbar: import('../System').CreateWuiComponent<"div", SnackbarProps>;
SnackbarAction: import('../System').CreateWuiComponent<"button", import('../Button').ButtonProps>;
Title: React.FC<TextProps>;
};
export type { GrowlProps, SnackbarProps };