1.1.2 • Published 4 years ago

react-power-select-multiple-for-single v1.1.2

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

react-power-select

A highly composable & reusable select components

npm version Build Status Coverage Status Storybook

DEMO https://selvagsz.github.io/react-power-select/

Installation

npm i react-power-select --save

Import the CSS in your bundle

import 'react-power-select/dist/react-power-select.css'

Usage

import React, { Component } from 'react'
import { PowerSelect } from 'react-power-select'

export default class Demo extends Component {
  state = {};

  handleChange = ({ option }) => {
    this.setState({
      selectedOption: option
    })
  }

  render() {
    return (
      <PowerSelect
        options={['React', 'Ember', 'Angular', 'Vue', 'Preact', 'Inferno']}
        selected={this.state.selectedOption}
        onChange={this.handleChange}
      />
    )
  }
}

Credits

Hat tip to ember-power-select's architecture

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago