UNPKG

@activelylearn/material-ui

Version:

Material-UI's workspace package

42 lines (23 loc) 1.23 kB
--- components: Select, NativeSelect --- # Selects ## Simple Select Menus are positioned over their emitting elements such that the currently selected menu item appears on top of the emitting element. {{"demo": "pages/demos/selects/SimpleSelect.js"}} ## Native Select As the user experience can be improved on mobile using the native select of the platform, we allow such pattern. {{"demo": "pages/demos/selects/NativeSelects.js"}} ## Multiple Select The `Select` component can handle multiple selections. It's enabled with the `multiple` property. Like with the single selection, you can pull out the new value by accessing `event.target.value` in the `onChange` callback. It's always an array. {{"demo": "pages/demos/selects/MultipleSelect.js"}} ## With a Dialog While it's discouraged by the Material Design specification, you can use a select inside a dialog. {{"demo": "pages/demos/selects/DialogSelect.js"}} ## Text Fields The `TextField` wrapper component is a complete form control including a label, input and help text. You can find an example with the select mode [in this section](/demos/text-fields#textfield). ## Controlled open Select {{"demo": "pages/demos/selects/ControlledOpenSelect.js"}}