Untitled
unknown
plain_text
2 years ago
612 B
4
Indexable
import { Box, Modal } from "@mui/material"; const style = { position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', width: 400, bgcolor: 'background.paper', border: '2px solid #000', boxShadow: 24, p: 4, }; const [show, setShow] = useState(false); <Modal open={show} onClose={() => setShow(false)} aria-labelledby="modal-modal-title" aria-describedby="modal-modal-description" > <Box sx={style}> ACA VA TU COMPONENTE </Box> </Modal>
Editor is loading...