react-address-typeahead-with-hilighter

0.2.12 • Public • Published

react-address-typeahead-with-hilighter

This project fork from jquery.Thailand.js react-thailand-address-typeahead

Requirement

  • react

Installation

$ npm install react react-address-typeahead-with-hilighter

Usage

import { AddressForm } from 'react-thailand-address-typeahead';

export default () => (
    <div>
        <AddressForm
         onAddressSelected={(addressObject) => console.log(addressObject)} 
        />
    </div>
)

OR

import { AddressWithoutForm } from 'react-thailand-address-typeahead';

export default () => (
    <div>
        <AddressWithoutForm
         onAddressSelected={(addressObject) => console.log(addressObject)} 
        />
    </div>
)

NOTE: For component styles you can include or use loader ./dist/styles.css to your app or implement by yourself styles

For futher more see Example

Todo

  • MORE UNIT TEST
  • custom styles example
  • improve performance and reduce bundle size
  • data.json lazy loading
  • server-side implementation example
  • using without React example
  • using with google map example

Development

  • Clone this project
  • run npm install
  • start development via storybook npm run storybook
  • navigate to localhost:9001

Testing

  • npm test

License

  • MIT

Readme

Keywords

none

Package Sidebar

Install

npm i react-address-typeahead-with-hilighter

Weekly Downloads

11

Version

0.2.12

License

MIT

Unpacked Size

319 kB

Total Files

13

Last publish

Collaborators

  • zepialz