/

Modal


The modal component is a powerful tool for displaying short action forms or confirming user's choice.

import { Modal, useModal } from 'insites-ui'

// Inside component
const { isVisible, toggle } = useModal()

<Modal isVisible={isVisible} onHide={toggle}>
    // Modal body
    <Modal.Footer>
      // Buttons etc.
    </Modal.Footer>
</Modal>
Edit on GitHub