1.0.1 • Published 11 months ago

oum-react-select v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

oum-react-select

Duplicates and extends the functionality of a native HTML select element, allowing it to be customizable in behavior and appearance far beyond the limitations of a native select.

NPM JavaScript Style Guide

Install

npm install --save oum-react-select

Usage

import React, { Component } from 'react'

import ReactSelect from 'oum-react-select'
import 'oum-react-select/dist/index.css'

class Example extends Component {
  render() {
    const departments = ["Sales", "Marketing", "Engineering", "Human Resources", "Legal"];
    return <ReactSelect id="department"
                        value={'t'}
                        options={departments}
                        onChange={e => {}}
                        listLabel="Chose your department"
                        showListLabel={true}
                        requiredFeedbackEnabled={true} />
  }
}

License

MIT © Oumaima MEDDAH

1.0.1

11 months ago

1.0.0

11 months ago