PrimitivesTextBoxButtonFlexLinkModalData inputInputData vizList
Modal Interlock Modal react component
🔗 open ▪️ handleOnClose ▪️ prop3

Inherited props

Box 🔗 children ▪️ padding ▪️ margin ▪️ css ▪️ className
Props
interface ModalProps extends BoxProps {
  open: boolean;
  handleCloseModal: () => void;
}

Usage
export function ModalDemo() {
const [open, setOpen] = useState(false);

const handleCloseModal = () => {
  setOpen(false);
};

return (
  <Box>
    <Modal
      handleCloseModal={handleCloseModal}
      open={open}
      css={{ width: 300, height: 300 }}
    />
    <button onClick={() => setOpen(true)}>Click me to open modal</button>
  </Box>
);
}
Rendered output