The icon that displays the arrow.
Props applied to the Menu
element.
Props applied to the clickable div element.
Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.
Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.
Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
Defines the total number of columns in a table, grid, or treegrid.
Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
Identifies the element (or elements) whose contents or presence are controlled by the current element.
Indicates the element that represents the current item within a container or set of related elements.
Identifies the element that provides a detailed, extended description for the object.
Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
Indicates what functions can be performed when a dragged object is released on the drop target.
Identifies the element that provides an error message for the object.
Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.
Indicates an element's "grabbed" state in a drag-and-drop operation.
Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
Indicates whether the element is exposed to an accessibility API.
Indicates the entered value does not conform to the format expected by the application.
Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
Defines a string value that labels the current element.
Identifies the element (or elements) that labels the current element.
Defines the hierarchical level of an element within a structure.
Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
Indicates whether an element is modal when displayed.
Indicates whether a text box accepts multiple lines of input or only a single line.
Indicates that the user may select more than one item from the current selectable descendants.
Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.
Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
Indicates the current "pressed" state of toggle buttons.
Indicates that the element is not editable, but is otherwise operable.
Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
Indicates that user input is required on the element before a form may be submitted.
Defines a human-readable, author-localized description for the role of an element.
Defines the total number of rows in a table, grid, or treegrid.
Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
Indicates the current "selected" state of various widgets.
Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
Indicates if items in a table or grid are sorted in ascending or descending order.
Defines the maximum allowed value for a range widget.
Defines the minimum allowed value for a range widget.
Defines the current value for a range widget.
Defines the human readable text alternative of aria-valuenow for a range widget.
This prop helps users to fill forms faster, especially on mobile devices. The name can be confusing, as it's more like an autofill. You can learn more about it following the specification.
If true
, the input
element is focused during the first mount.
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.
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.
Override or extend the styles applied to the component.
The color of the component.
It supports both default and custom theme colors, which can be added as shown in the
palette customization guide.
The prop defaults to the value ('primary'
) inherited from the parent FormControl component.
The components used for each slot inside the InputBase. Either a string to use a HTML element or a component.
The props used for each slot inside the Input.
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).
The default value. Use when the component is not controlled.
If true
, GlobalStyles for the auto-fill keyframes will not be injected/removed on mount/unmount. Make sure to inject them at the top of your application.
This option is intended to help with boosting the initial rendering performance if you are loading a big amount of Input components at once.
If true
, the input
will not have an underline.
If true
, the component is disabled.
The prop defaults to the value (false
) inherited from the parent FormControl component.
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.
End InputAdornment
for this component.
If true
, the input
will indicate an error.
The prop defaults to the value (false
) inherited from the parent FormControl component.
The id
of the wrapper element or the select
element when native
.
An Input
element; does not have to be a material-ui specific Input
.
The component used for the input
element.
Either a string to use a HTML element or a component.
Hints at the type of data that might be entered by the user while editing the element or its contents
Attributes applied to the input
element.
When native
is true
, the attributes are applied on the select
element.
Pass a ref to the input
element.
Specify that a standard HTML element should behave like a defined custom built-in element
The ID of an element that acts as an additional label. The Select will be labelled by the additional label and the selected value.
If dense
, will adjust vertical spacing. This is normally obtained via context from
FormControl.
The prop defaults to the value ('none'
) inherited from the parent FormControl component.
Maximum number of rows to display when multiline option is set to true.
Minimum number of rows to display when multiline option is set to true.
If true
, a TextareaAutosize element is rendered.
If true
, value
must be an array and the menu will support multiple selections.
Name attribute of the input
element.
If true
, the component uses a native select
element.
If true
, the outline is notched to accommodate the label.
Callback fired when the input
is blurred.
Notice that the first argument (event) might be undefined.
Callback fired when a menu item is selected.
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.
If true
, the component is shown.
You can only use it when the native
prop is false
(default).
The short hint displayed in the input
before the user enters a value.
It prevents the user from changing the value of the field (not from interacting with the field).
If true
, the input
element is required.
The prop defaults to the value (false
) inherited from the parent FormControl component.
Number of rows to display when multiline option is set to true.
The size of the component.
Start InputAdornment
for this component.
The system prop that allows defining system overrides as well as additional CSS styles.
Type of the input
element. It should be a valid HTML5 input type.
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.
The variant to use.
Callback fired when the component requests to be closed. Use in controlled mode (see open).
The event source of the callback.
Callback fired when the component requests to be opened. Use in controlled mode (see open).
The event source of the callback.
Render the selected value.
You can only use it when the native
prop is false
(default).
The value
provided to the component.
Generated using TypeDoc
Custom MUI Select properties