UNPKG

@etsoo/materialui

Version:

TypeScript Material-UI Implementation

14 lines (13 loc) 512 B
import { jsx as _jsx } from "react/jsx-runtime"; import Paper from "@mui/material/Paper"; import React from "react"; import Draggable from "react-draggable"; /** * Draggable paper component * @param props Props * @returns Component */ export function DraggablePaperComponent(props) { const nodeRef = React.useRef(null); return (_jsx(Draggable, { handle: ".draggable-dialog-title", cancel: '[class*="MuiDialogContent-root"]', nodeRef: nodeRef, children: _jsx(Paper, { ref: nodeRef, ...props }) })); }