@spaced-out/ui-design-system
Version:
Sense UI components library
49 lines • 1.59 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 interface ToastProps {
classNames?: ClassNames;
children?: React.ReactNode;
time?: string;
semantic?: ToastSemanticType;
onClose?: () => void;
initialFocus?: number;
customIcon?: React.ReactNode;
hideCloseIcon?: boolean;
testId?: string;
}
export interface ToastTitleProps {
children?: React.ReactNode;
className?: string;
testId?: string;
}
export declare const ToastTitle: Flow.AbstractComponent<ToastTitleProps, HTMLDivElement>;
export interface ToastBodyProps {
children?: React.ReactNode;
className?: string;
testId?: string;
}
export declare const ToastBody: Flow.AbstractComponent<ToastBodyProps, HTMLDivElement>;
export interface ToastFooterProps {
children?: React.ReactNode;
onClose?: () => void;
testId?: string;
}
export declare const ToastFooter: {
({ children, onClose, testId }: ToastFooterProps): React.JSX.Element | null;
displayName: string;
};
export declare const Toast: ({ classNames, children, time, semantic, onClose, initialFocus, customIcon, hideCloseIcon, testId, }: ToastProps) => React.JSX.Element;
export {};
//# sourceMappingURL=Toast.d.ts.map