lbl-popups
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

react-popups

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save lbl-popups

Usage

// src/index.tsx

import React from 'react'
import ReactDOM from 'react-dom'
import { Popups } from 'lbl-popups'

function App() {
  return (
    <div>
      <Popups />
    </div>
  )
}

ReactDOM.render(<App />, document.getElementById('root'))

// Anywhere.txs
function Login(props: { title: string }) {
  return (
    <div>
      <h1>{props.title}</h1>
      <input />
      <input />
      <button>login</button>
    </div>
  )
}

const user = await Popups.open({
  el: Login,
  props: {
    title: 'Login',
  },
})

License

MIT ©

Dependencies (3)

Dev Dependencies (19)

Package Sidebar

Install

npm i lbl-popups

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

55.3 kB

Total Files

14

Last publish

Collaborators

  • libeilong