1.0.3 • Published 1 year ago

select-seb59000 v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0

1 year ago