0.0.2 • Published 8 years ago

full-page-modal v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

Thermal Modal

this is a component is a full page modal using styled-components and react. It's built because why not. It's better than card based modal because who wants that stupid margin on mobile. It's extendable, so change it however you want. API is described below.

import Modal from 'full-page-modal'

const App = props => {
  const modalBody = (
    <div>some modality right here</div>
  )
  return (
    <App>
      <Modal modalBody={modalBody}>
        {toggle => (
          <HeroSection><Button onClick={toggle}>Click me to open the modal</Button></HeroSection>
        )}
      </Modal>
    </App>
  )
}
0.0.2

8 years ago

0.0.1

8 years ago