shersoft-comboupdated

1.0.5 • Public • Published

shersoft-comboupdated

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save shersoft-comboupdated

Usage

import React, { Component } from 'react'

import ComboBox2 from 'shersoft-comboupdated'


class Example extends Component {
  render() {
    return <ComboBox2
                options={displayoptions}
                comboRef={Ref}
                onKeyDown={(e) => .....}
                className='ClassName'
                inputClassName='ClassName'
                onInputChange={(value) => handleComboBoxInputChange(value, '....')}
                findedValue={.....}                                         
   />
  }
}

This is a Creatable Select or ComboBox input field that builded according to my needs. use the prop "options" to pass values of the dropdown. if you want add a useRef use the prop "comboRef"instead of "ref". use "onInputChange" instead of "onChange". if you want to display any default values on the input field ,pass the value through the "findedValue" prop. /////styling///

use the "className" prop to adjust the width and height of the combobox. use the "inputClassName" prop to do the other styles of the input field. use "combobox_dropdown" className directly on your styles to style the dropdown. use "dropdown_option" className directly on your styles to style the dropdown options .

License

MIT © aswinsivadasp

Package Sidebar

Install

npm i shersoft-comboupdated

Weekly Downloads

3

Version

1.0.5

License

MIT

Unpacked Size

54.8 kB

Total Files

6

Last publish

Collaborators

  • aswinpsivadas