#Select

import Select from "@poodle/ui/Select";

Select is a component allow the user to select a menu of options.

#Basic

Due to the styling solutions. The native select has to be hidden so we need to provide the selected value with the valueText prop.

Your code needs to handle the selected value text. So the select component should be a controlled component.

#Adornment

We can add prefix or suffix to the input

$

#Theming

Please check theming component document here.

export interface SelectThemeConfig
extends StandardThemeConfig<SelectStyleKeys, SelectProps> {}

#Props

#Local Props

NameTypeDescription
dividerPropsBoxPropsCustom icon props
endAdornmentReact.ReactNodeAdd suffix to the input.
errorbooleanChange the component style to error style when set to true.
iconPropsBoxPropsCustom icon props
selectPropsBoxProps<"select">Custom select props
startAdornmentReact.ReactNodeAdd prefix to the input.
valueTextReact.ReactNodeDisplay selected value
valueTextPropsBoxPropsCustom value text props

#Full Props

export interface SelectProps
extends BoxProps,
StandardComponentProps,
LocalSelectProps {}