@spaced-out/ui-design-system
Version:
Sense UI components library
28 lines • 945 B
TypeScript
import type * as React from 'react';
export declare const POSITIONS: {
readonly TOP_CENTER: "topCenter";
readonly TOP_LEFT: "topLeft";
readonly TOP_RIGHT: "topRight";
readonly BOTTOM_LEFT: "bottomLeft";
readonly BOTTOM_RIGHT: "bottomRight";
readonly BOTTOM_CENTER: "bottomCenter";
};
export declare const ACTIONS: {
readonly ADD: "ADD";
readonly REMOVE: "REMOVE";
};
export type positionTypes = (typeof POSITIONS)[keyof typeof POSITIONS];
export type actionTypes = (typeof ACTIONS)[keyof typeof ACTIONS];
export type contentTypes = React.ReactNode;
export type ToastOptions = {
timeout?: number;
position?: positionTypes;
autoClose?: boolean;
uniqueCode?: string | number;
};
export type optionTypes = ToastOptions & {
id: string;
key?: string;
};
export type callbackFuncTypes = (type: actionTypes, content: contentTypes, options: optionTypes) => void;
//# sourceMappingURL=toast.d.ts.map