react-ui-expand
Install
$ npm install react-ui-expand --save
Usage
;; ; const Demo = { return <Expand className="hoge" button=<button>Open!!</button> > { return<div>button This Element will expand to fullscreen!! </div>; } </Expand>}; ;
Props
Common props you may want to specify include:
beforeOpen
- subscribe to before open eventsonOpen
- subscribe to open eventsbeforeClose
- subscribe to before close eventsonClose
- subscribe to close eventsclassName
- apply a className to the controlbutton
- jsx element to trigger eventschildren
- callback function to return jsx element which includes the button element
License
MIT Licensed. Copyright (c) appleple 2019.