react-layout-timbel
Version:
모던한 React 컴포넌트 라이브러리입니다. Layout, Card, Button 컴포넌트를 포함합니다.
11 lines • 568 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import React from 'react';
export const Modal = ({ title, children, theme = 'light', size = 'medium', onClick, ...props }) => {
const handleClick = () => {
if (onClick) {
onClick();
}
};
return (_jsxs("div", { className: `modal ${theme} ${size}`, onClick: handleClick, ...props, children: [title && _jsx("h3", { className: `modal-title`, children: title }), _jsx("div", { className: `modal-content`, children: children })] }));
};
//# sourceMappingURL=index.js.map