@pismo/bolt-modal
v0.0.1-32
Published
Modal component for Pismo Bolt
Downloads
34
Maintainers
Readme
Bolt Modal
Installation
> yarn add @pismo/bolt-modal
Usage
import Modal from '@pismo/bolt-modal'
Props
Prop | Type | Description | Required | Default --- | :---: | --- | :---: | :---: isOpen | bool | controls whether it's open or closed on the screen | false | false onClose | func | callback fired if user tried to close modal somehow | true | – children | any | anything you want rendered inside | true | – controlOverflow | bool | should disable page scrolling when open? | false | true closeIcon | union | custom icon that closes modal on click | false | 'X'