@spaced-out/ui-design-system
Version:
Sense UI components library
28 lines • 975 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 interface ToastOptions {
timeout?: number;
position?: PositionTypes;
autoClose?: boolean;
uniqueCode?: string | number;
}
export interface OptionTypes extends Omit<ToastOptions, 'id' | 'key'> {
id: string;
key?: string;
}
export type CallbackFuncTypes = (type: ActionTypes, content: ContentTypes, options: OptionTypes) => void;
//# sourceMappingURL=toast.d.ts.map