Skip to content
+

Input

The Input component provides users with a field to enter and edit text.

useInput API

Import

import { useInput } from '@mui/base/useInput';
// or
import { useInput } from '@mui/base';
Learn about the difference by reading this guide on minimizing bundle size.

Parameters

defaultValue

disabled

error

inputRef

onBlur

onChange

onClick

onFocus

required

value

Return value

disabled

error

focused

formControlContext

getInputProps

getRootProps

inputRef

required

value