Select

Use and Import

import Select from 'nes-design/es/Select';   OR   import { Select } from 'nes-design';
Copy

Case

Select

Select Fruit:

banana

Status

disabled

Props

Prop / 参数Description / 描述Type / 类型Default / 默认值
optionsselect options / 选择框选项Option[ ]
statusstatus / 选择框状态'success' | 'warning' | 'error'-
disableddisabled / 禁止选择boolean-
...restmore attrs(Example: onChange) / 更多属性(Example: onChange)React.HTMLAttributes<HTMLSelectElement>-
Prop / 参数Description / 描述Type / 类型Default / 默认值
valueselect option value / 选择框选项值string-
labelselect option children / 选择框选项展示的内容React.ReactNode-
...restmore attrs / 更多属性React.HTMLAttributes<HTMLOptionElement>-