@spaced-out/ui-design-system
Version:
Sense UI components library
46 lines • 1.51 kB
TypeScript
import * as React from 'react';
import type { Flow } from 'flow-to-typescript-codemod';
type ClassNames = Readonly<{
wrapper?: string;
time?: string;
}>;
export declare const TOAST_SEMANTIC: Readonly<{
success: "success";
information: "information";
warning: "warning";
danger: "danger";
primary: "primary";
}>;
export type ToastSemanticType = (typeof TOAST_SEMANTIC)[keyof typeof TOAST_SEMANTIC];
export type ToastProps = {
classNames?: ClassNames;
children?: React.ReactNode;
time?: string;
semantic?: ToastSemanticType;
onClose?: () => void;
initialFocus?: number;
customIcon?: React.ReactNode;
hideCloseIcon?: boolean;
};
export type ToastTitleProps = {
children?: React.ReactNode;
className?: string;
semantic?: ToastSemanticType;
};
export declare const ToastTitle: Flow.AbstractComponent<ToastTitleProps, HTMLDivElement>;
export type ToastBodyProps = {
children?: React.ReactNode;
className?: string;
};
export declare const ToastBody: Flow.AbstractComponent<ToastBodyProps, HTMLDivElement>;
export type ToastFooterProps = {
children?: React.ReactNode;
onClose?: () => void;
};
export declare const ToastFooter: {
({ children, onClose }: ToastFooterProps): React.JSX.Element | null;
displayName: string;
};
export declare const Toast: ({ classNames, children, time, semantic, onClose, initialFocus, customIcon, hideCloseIcon, }: ToastProps) => React.JSX.Element;
export {};
//# sourceMappingURL=Toast.d.ts.map