react-modal-view
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/react-modal-view package

1.1.1 • Public • Published

react-modal-view

npm version

A simple react modal component

Install

yarn add react-modal-view

Use

import Modal from 'react-modal-view'
import ReactDOM from 'react-dom'
import React, { Component } from 'react'
 
class TestComponent extends Component {
  render () {
    return (
      <div>
        <Modal visible={true}>
          <h2>Hello from inside your modal</h2>
          <p>This is a paragraph.</p>
        </Modal>
      </div>
    )
  }
}
 
ReactDOM.render(
  <TestComponent />,
  document.getElementById('root')
)

Styles

Uses styled-components 💅 for the base styling.

Development

yarn
yarn dev

Test

yarn test

Build

yarn
yarn build

Publish

npm login
npm version patch
git add -A
git push origin master
npm publish

License

MIT

Package Sidebar

Install

npm i react-modal-view

Weekly Downloads

23

Version

1.1.1

License

MIT

Unpacked Size

244 kB

Total Files

12

Last publish

Collaborators

  • svnm