@yeji0214/modal
Version:
모달 컴포넌트
19 lines (18 loc) • 803 B
TypeScript
import { ModalButtonProps } from '../components/Button/Button';
type ModalProps = {
variant?: "alert" | "confirm" | "prompt";
position?: "center" | "bottom" | "top";
size?: "small" | "medium" | "large";
title?: string;
content?: React.ReactNode;
handleBackdropClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
hasCloseButton?: boolean;
onClose: () => void;
onConfirm: () => void;
confirmButton?: ModalButtonProps;
cancelButton?: ModalButtonProps;
inputTitle?: string;
inputName?: string;
};
declare const Modal: ({ variant, position, size, title, content, handleBackdropClick, hasCloseButton, onClose, onConfirm, confirmButton, cancelButton, inputTitle, inputName, }: ModalProps) => import("react/jsx-runtime").JSX.Element;
export default Modal;