0.1.7 • Published 1 year ago

react-multi-selectes v0.1.7

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

React-Multi-Selectes

How to use

import { CustomSelectBox } from 'react-multi-selectes'


<CustomSelectBox
    options={[]}
    onChange={e => setSelect(e)}
    ...props
/>

OptionsType

type OptionsType = {
    value: string | number
    label: string
}

Props

PropTypeRequierDefault
optionsOptionsType*
onChange(e: any) => void*
defaultValuenumber or string0
defaultArrayValue(number or string)[][]
isMultibooleanfalse
isSearchablebooleanfalse
placeholderstringSelect...
searchPlaceholderstringSearch...
backgroundColorstring#fff
backgroundColorItemstring#98c5ff
borderColorstring#ccc
borderHoverColorstring#bebebe
borderFocusColorstring#2684ff
textColorstring#2e2d2d
textColorActiveItemstring#2e2d2d
placeholderColorstring#bebebe
borderRadiusstring0.35rem
borderRadiusstring0.35rem
borderRadiusItemstring0.35rem
borderWidthstring2px
paddingstring0.25rem
inputHeightstring2.25rem