Modal
Usage
import { Modal, Button } from '@aragon/ui'
const App = () => {
const [opened, setOpened] = useState(false)
const open = () => setOpened(true)
const close = () => setOpened(false)
return (
<>
<Button onClick={open}>Open modal</Button>
<Modal visible={opened} onClose={close}>
{/* modal content */}
</Modal>
</>
)
}Demonstration

Props
visible
visibleTYPE
DEFAULT VALUE
width
widthTYPE
DEFAULT VALUE
padding
paddingTYPE
DEFAULT VALUE
onClose
onCloseTYPE
DEFAULT VALUE
onClosed
onClosedTYPE
DEFAULT VALUE
closeButton
closeButtonTYPE
DEFAULT VALUE
Last updated
Was this helpful?
