UNPKG

@kbfront/kb-ui

Version:

KB React UI Library

39 lines (38 loc) 866 B
import { ReactNodeArray, ReactNode, FC } from "react"; import { EColor } from "enum"; import "./index.scss"; export interface IModalAction { action(): void; title: string; color?: EColor; } interface IProps { children?: ReactNodeArray | ReactNode; open?: boolean; primaryAction?: IModalAction; secondaryAction?: IModalAction; closeHandler: () => void; animation?: EModalAnimation; title?: string; className?: string; size?: EModalSize; closeShow?: boolean; header?: boolean; headerBorder?: boolean; outSideClick?: boolean; } export declare enum EModalSize { XS = "xs", S = "s", M = "m", L = "l", XL = "xl" } export declare enum EModalAnimation { LEFT = "left", TOP = "top", RIGHT = "right", BOTTOM = "bottom" } declare const Modal: FC<IProps>; export default Modal;