1.0.1 • Published 2 years ago
theme-ui-modal v1.0.1
Theme UI Modal
Theme UI Modal
Install
yarn add theme-ui-modal
Usage
import { Modal } from 'theme-ui-modal'
...
<Modal variant='small' shown={!!newMatch} onCancel={() => navigate(`/books${window.location.search}`)}>
{({ onRequestClose }) => <New onRequestClose={onRequestClose} onCreate={() => listRef.current.callRefetch()} />}
</Modal>