welcome-ui
Version:
Customizable design system with react, typescript, tailwindcss and ariakit.
23 lines (22 loc) • 1.43 kB
TypeScript
import { IconProps } from '../Icon/types';
import { TextProps } from '../Text/types';
import { default as toastStyles } from './toast.module.scss';
import { ToastOptions, ToastVariant } from './types';
export { toastStyles as toastClasses };
export declare const dismiss: (toastId?: string, toasterId?: string) => void, remove: (toastId?: string, toasterId?: string) => void;
export declare const ICON: Record<ToastVariant, IconProps['name']>;
export declare const toast: (component: JSX.Element, options?: ToastOptions) => string;
export declare const Toast: import('react').FC<import('react-hot-toast').ToasterProps> & {
Growl: import('react').ForwardRefExoticComponent<Omit<import('./types').GrowlProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
GrowlAction: import('../../utils').FunctionComponentWithAs<"button", import('../Button/types').ButtonProps>;
Snackbar: import('react').ForwardRefExoticComponent<Omit<import('./types').SnackbarProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
SnackbarAction: import('../../utils').FunctionComponentWithAs<"button", import('../Button/types').ButtonProps>;
Subtitle: {
({ children, ...rest }: TextProps): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
Title: {
({ children, className, ...rest }: TextProps): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
};