Props
Attributes
- Graph
-
- Supertypes
-
trait WithChildren[VdomNode]trait PropTypesclass Objecttrait Matchableclass Any
Members list
Type members
Classlikes
The input
value. Providing an empty string will select no options. Set to an empty string ''
if you don't want any of the available options to be selected.
The input
value. Providing an empty string will select no options. Set to an empty string ''
if you don't want any of the available options to be selected.
If the value is an object it must have reference equality with the option in order to be selected. If the value is not an object, the string representation must match with the string representation of the option in order to be selected.
Attributes
- Supertypes
-
class Prop[String | Any]class Objecttrait Matchableclass Any
- Self type
-
value.type
Value members
Concrete methods
The icon that displays the arrow.
The icon that displays the arrow.
Attributes
Props applied to the Menu
element.
Props applied to the clickable div element.
Props applied to the clickable div element.
Attributes
If true
, the width of the popover will automatically be set according to the items inside the menu, otherwise it will be at least the width of the select input.
If true
, the width of the popover will automatically be set according to the items inside the menu, otherwise it will be at least the width of the select input.
Attributes
The option elements to populate the select with. Can be some MenuItem
when native
is false and option
when native
is true.
The option elements to populate the select with. Can be some MenuItem
when native
is false and option
when native
is true.
⚠️The MenuItem
elements must be direct descendants when native
is false.
Attributes
Override or extend the styles applied to the component.
Override or extend the styles applied to the component.
Attributes
If true
, the component is initially open. Use when the component open state is not controlled (i.e. the open
prop is not defined). You can only use it when the native
prop is false
(default).
If true
, the component is initially open. Use when the component open state is not controlled (i.e. the open
prop is not defined). You can only use it when the native
prop is false
(default).
Attributes
The default value. Use when the component is not controlled.
The default value. Use when the component is not controlled.
Attributes
If true
, a value is displayed even if no items are selected.
If true
, a value is displayed even if no items are selected.
In order to display a meaningful value, a function can be passed to the renderValue
prop which returns the value to be displayed when no items are selected.
⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value. The label should either be hidden or forced to a shrunk state.
Attributes
The id
of the wrapper element or the select
element when native
.
The id
of the wrapper element or the select
element when native
.
Attributes
An Input
element; does not have to be a material-ui specific Input
.
An Input
element; does not have to be a material-ui specific Input
.
Attributes
Attributes applied to the input
element. When native
is true
, the attributes are applied on the select
element.
Attributes applied to the input
element. When native
is true
, the attributes are applied on the select
element.
Attributes
See OutlinedInput#label
The ID of an element that acts as an additional label. The Select will be labelled by the additional label and the selected value.
The ID of an element that acts as an additional label. The Select will be labelled by the additional label and the selected value.
Attributes
If true
, value
must be an array and the menu will support multiple selections.
If true
, value
must be an array and the menu will support multiple selections.
Attributes
If true
, the component uses a native select
element.
If true
, the component uses a native select
element.
Attributes
Callback fired when a menu item is selected.
Callback fired when a menu item is selected.
Value parameters
- {SelectChangeEvent<Value>}
-
event The event source of the callback. You can pull out the new value by accessing
event.target.value
(any). Warning: This is a generic event, not a change event, unless the change event is caused by browser autofill. - {object}
-
[child] The react element that was selected when
native
isfalse
(default).
Attributes
Callback fired when the component requests to be closed. Use it in either controlled (see the open
prop), or uncontrolled mode (to detect when the Select collapses).
Callback fired when the component requests to be closed. Use it in either controlled (see the open
prop), or uncontrolled mode (to detect when the Select collapses).
Value parameters
- {object}
-
event The event source of the callback.
Attributes
Callback fired when the component requests to be opened. Use it in either controlled (see the open
prop), or uncontrolled mode (to detect when the Select expands).
Callback fired when the component requests to be opened. Use it in either controlled (see the open
prop), or uncontrolled mode (to detect when the Select expands).
Value parameters
- {object}
-
event The event source of the callback.
Attributes
If true
, the component is shown. You can only use it when the native
prop is false
(default).
If true
, the component is shown. You can only use it when the native
prop is false
(default).
Attributes
Render the selected value. You can only use it when the native
prop is false
(default).
Render the selected value. You can only use it when the native
prop is false
(default).
Value parameters
- {any}
-
value The
value
provided to the component.
Attributes
The system prop that allows defining system overrides as well as additional CSS styles.
The system prop that allows defining system overrides as well as additional CSS styles.
Attributes
Inherited methods
Attributes
- Inherited from:
- PropTypes
Inherited fields
Attributes
- Inherited from:
- PropTypes