InputUnstyled API
Importação
import InputUnstyled from '@mui/base/InputUnstyled';
// ou
import { InputUnstyled } from '@mui/base';Propriedades
Propriedades do componente nativo também estão disponíveis.
| Nome | Tipo | Padrão | Descrição | 
|---|---|---|---|
| autoComplete | string | 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. | |
| autoFocus | bool | false | If  true, theinputelement is focused during the first mount. | 
| className | string | Styles applied to the root element. | |
| component | elementType | The component used for the root node. Either a string to use a HTML element or a component. | |
| defaultValue | any | The default input value. Use when the component is not controlled. | |
| disabled | bool | false | If  true, theinputelement is disabled. The prop defaults to the value (false) inherited from the parent FormControl component. | 
| endAdornment | node | Trailing adornment for this input. | |
| error | bool | false | If  true, theinputwill indicate an error. The prop defaults to the value (false) inherited from the parent FormControl component. | 
| id | string | The id of the  inputelement. | |
| maxRows | number | Maximum number of rows to display when multiline option is set to true. | |
| minRows | number | Minimum number of rows to display when multiline option is set to true. | |
| multiline | bool | false | If  true, atextareaelement is rendered. | 
| name | string | Name attribute of the  inputelement. | |
| placeholder | string | The short hint displayed in the  inputbefore the user enters a value. | |
| readOnly | bool | false | It prevents the user from changing the value of the field (not from interacting with the field). | 
| required | bool | false | If  true, theinputelement is required. The prop defaults to the value (false) inherited from the parent FormControl component. | 
| rows | number | Number of rows to display when multiline option is set to true. | |
| slotProps | { input?: func | object, root?: func | object } | {} | |
| slots | { input?: elementType, root?: elementType, textarea?: elementType } | {} | |
| startAdornment | node | Leading adornment for this input. | |
| type | 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | 'text' | Type of the  inputelement. It should be a valid HTML5 input type. | 
| value | any | The value of the  inputelement, required for a controlled component. | 
O
ref é encaminhado para o elemento raiz.