select-seb59000

1.0.3 • Public • Published

select-seb59000

a simple select

NPM JavaScript Style Guide

Install

in your project directory open your cmd and type this :

npm install --save select-seb59000

Usage

in your react project to import the component, put those lines of code :

import React, { Component } from 'react'

import { Dropdown } from 'select-seb59000'

class Example extends Component {
  const values = [0, 1, 2, 3, 4]
  const onChange = ()=>{
    //To Do();
  }

  render() {
    return <Dropdown id="id" classOfSelect="classOfSelect" values={values} choices={values} onChange={onChange} />
  }
}

Props

id - the id of your DropDown

classOfSelect - the class for the selects

choices - the text displayed in the selection

values - the values which are saved

onChange - a function to run onChange()

License

MIT © Seb59000

recommended IDE : Visual Studio Code node version: >=10

Readme

Keywords

Package Sidebar

Install

npm i select-seb59000

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

6.42 kB

Total Files

6

Last publish

Collaborators

  • seb59000