0.0.6 • Published 8 months ago

@licuido-ui/ui_dropdown v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Dropdown

Select components are used for collecting user provided information from a list of options.

Author

Link

Story Book Link to Dropdown

PlayGround

Try it have a fun codeBox

Installation

npm i @licuido-ui/ui_dropdown

Import component

import { Dropdown } from '@licuido-ui/ui_dropdown';

Usage

<Dropdown value={''} placeholder={'Select'} />

Image

alt text

Sample Code

<Dropdown 
    dropDownId={''}
    labelStyle={{}}
    inputStyle={{}}
    value={''}
    optionListStyle={{}}
    selectOption={[]}
    error={false}
    onChange={(event) => undefined}
    className={''}
    helperText={''}
    label={'count'}
    labelVariant={'standard'}
    required={false}
    errorMessage={''}
    placeholder={'Select'} 
/>

Props

NameDescriptionDefaultControl
labelStyleSxProps<{}>-labelStyle : {}
inputStyleSxProps<{}>-inputStyle : {}
value*-""
optionListStyleSxProps<{}>-optionListStyle : {}
selectOption{ [key: string]: string | number; [key: number]: string | number; label: string | number; value: string | number; }[]-selectOption : []
errorTrue or FalsefalseFalse
placeholderThe short hint displayed in the input before the user enters a value.string-string
onChange*(event: SelectChangeEvent<unknown>, child: ReactNode) => void--
classNamestring-
helperTextstring-
requiredIf true, the input element is required.-False or True
errorMessagestring-
sxThe system prop that allows defining system overrides as well as additional CSS styles.SxProps<Theme>-Set object
labelVariant"standard""float"-standardfloat
variantThe variant to use."filled""outlined""standard"-filledoutlinedstandard
childrenThe option elements to populate the select with.false.ReactNode-Set object
labelSee OutlinedInput#labelstring-Set string
defaultValueThe default value. Use when the component is not controlled.unknown-Set object
dropDownIdThe id of the wrapper element or the select element when native.string-Set string
inputPropsAttributes applied to the input elementSet object
selectClassNamestring-Set string
autoWidthIf true, the width of the popover will automatically be set according to the items inside-Set boolean
defaultOpenSet boolean
displayEmpty-Set boolean
IconComponentThe icon that displays the arrow.ElementType<any>-Set object
labelIdThe ID of an element that acts as an additional label. The Select willSet string
MenuPropsProps applied to the Menu element.Partial<unknown>-Set object
multipleIf true, value must be an array and the menu will support multiple selections.boolean-Set boolean
nativeIf true, the component uses a native select element.boolean-Set boolean
SelectDisplayPropsProps applied to the clickable div element.HTMLAttributes<HTMLDivElement>-Set object
menuPropsMenuProps-Set object
selectIconElementType<unknown>-Set object