playtpus_ui
Version:
React Component Libary
25 lines • 915 B
TypeScript
import '../main.scss';
declare type Position = 'top-left' | 'top-right' | 'top-center' | 'bottom-left' | 'bottom-right' | 'bottom-center';
interface Popup {
type: 'notification' | 'message' | 'modal';
position?: Position;
}
export interface Notification {
title: string;
message: string;
position?: Position;
visibilityTime?: number;
}
declare type NotificationType = "warning" | "success" | "error";
export declare const createPopup: ({ type, position }: Popup) => {
container: HTMLElement;
child: HTMLDivElement;
};
declare const Notification: (type: NotificationType, { title, message, position, visibilityTime }: Notification) => void;
declare const _default: {
success: (props: Notification) => void;
warning: (props: Notification) => void;
error: (props: Notification) => void;
};
export default _default;
//# sourceMappingURL=index.d.ts.map