2.0.2 • Published 5 years ago

qp-react-ui v2.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

QP React UI Kit

Installation

Peer dependencies and component library:

npm i react react-dom qp-react-ui

or

yarn add react react-dom qp-react-ui

Components

Search

Usage

Use in jsx:

import React from 'react'
import { Search } from 'qp-react-ui'

const handleWellSelect = (chosenWell) => console.log(chosenWell)

const App = () => (
  <Search API_KEY=''
    onWellSelect={handleWellSelect} />
)

Use in html:

<html>
<head>
  ...
  <!-- react CDN -->
  <!-- react-dom CDN -->

  <!-- qp-react-ui taken from node_modules/qp-react-ui/dist -->
  <script src="./qp-react-ui.min.js"></script>
</head>
<body>
  ...
  <div id="search-component"></div>
  <script>
    ReactDOM.render(
      React.createElement(UIKit.Search, {
        API_KEY: 'your-api-key',
        onWellSelect: () => { /* Your select handler*/ }
      }),
      document.getElementById('search-component')
    )
  </script>
</body>
</html>
3.0.0-alpha.1

5 years ago

3.0.0-alpha.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5-alpha.0

6 years ago

1.0.4-alpha.0

6 years ago

1.0.3-alpha.0

6 years ago

1.0.2-alpha.0

6 years ago

1.0.1-alpha.0

6 years ago

1.0.0

6 years ago