5.0.0 • Published 3 years ago

qp-es-ui v5.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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.2

3 years ago

3.1.0

3 years ago

3.0.1

3 years ago

2.0.1-alpha.1

3 years ago

5.0.0

3 years ago

2.0.0-alpha.1

3 years ago

3.0.0

3 years ago

1.0.0-alpha.1

3 years ago