Edit page

Input

Base on https://material-ui.com/components/text-fields/

Related component

  • https://material-ui.com/components/inputs/

Icon

Basic usage

import { Input } from '@doopage/react-ui-kit'
const Example = () => <Input />;
export default Example;

Playground

Normal

Helper Text

this is helper text

Error

this is error

this is error

this is error

Loading

With Icon

this is helper text

Full width

this is helper text

Properties

Prop nameTypeDefaultRequiredDescription
loadingboolean | undefinedfalse
hideboolean | undefinedfalse
helperTextstring | undefinedfalse

The helper text content.

endIconReactNodefalse
startIconReactNodefalse
errorstring | undefinedfalse
titlestring | undefinedfalse
disabledboolean | undefinedfalse

If true, the input element will be disabled.

onChange((event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void) | undefinedfalse

Callback fired when the value is changed. Callback fired when the value is changed. Callback fired when the value is changed. @param event The event source of the callback. You can pull out the new value by accessing event.target.value (string). @param event The event source of the callback. You can pull out the new value by accessing event.target.value (string). @param event The event source of the callback. You can pull out the new value by accessing event.target.value (string).

classesPartial<Record<"root", string>> | undefinedfalse

Override or extend the styles applied to the component.

defaultCheckedboolean | undefinedfalse
defaultValueunknownfalse

The default value of the input element.

suppressContentEditableWarningboolean | undefinedfalse
suppressHydrationWarningboolean | undefinedfalse
accessKeystring | undefinedfalse
classNamestring | undefinedfalse
contentEditableboolean | "true" | "false" | "inherit" | undefinedfalse
contextMenustring | undefinedfalse
dirstring | undefinedfalse
draggableboolean | "true" | "false" | undefinedfalse
hiddenboolean | undefinedfalse
idstring | undefinedfalse

The id of the input element. Use this prop to make label and helperText accessible for screen readers.

langstring | undefinedfalse
placeholderstring | undefinedfalse

The short hint displayed in the input before the user enters a value.

slotstring | undefinedfalse
spellCheckboolean | "true" | "false" | undefinedfalse
styleCSSProperties | undefinedfalse
tabIndexnumber | undefinedfalse
translate"yes" | "no" | undefinedfalse
radioGroupstring | undefinedfalse
rolestring | undefinedfalse
aboutstring | undefinedfalse
datatypestring | undefinedfalse
inlistanyfalse
prefixstring | undefinedfalse
propertystring | undefinedfalse
resourcestring | undefinedfalse
typeofstring | undefinedfalse
vocabstring | undefinedfalse
autoCapitalizestring | undefinedfalse
autoCorrectstring | undefinedfalse
autoSavestring | undefinedfalse
itemPropstring | undefinedfalse
itemScopeboolean | undefinedfalse
itemTypestring | undefinedfalse
itemIDstring | undefinedfalse
itemRefstring | undefinedfalse
resultsnumber | undefinedfalse
securitystring | undefinedfalse
unselectable"on" | "off" | undefinedfalse
inputMode"none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefinedfalse

Hints at the type of data that might be entered by the user while editing the element or its contents @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute

isstring | undefinedfalse

Specify that a standard HTML element should behave like a defined custom built-in element @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is

aria-activedescendantstring | undefinedfalse

Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.

aria-atomicboolean | "true" | "false" | undefinedfalse

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.

aria-autocomplete"none" | "inline" | "list" | "both" | undefinedfalse

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.

aria-busyboolean | "true" | "false" | undefinedfalse

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.

aria-checkedboolean | "true" | "false" | "mixed" | undefinedfalse

Indicates the current “checked” state of checkboxes, radio buttons, and other widgets. @see aria-pressed @see aria-selected.

aria-colcountnumber | undefinedfalse

Defines the total number of columns in a table, grid, or treegrid. @see aria-colindex.

aria-colindexnumber | undefinedfalse

Defines an element’s column index or position with respect to the total number of columns within a table, grid, or treegrid. @see aria-colcount @see aria-colspan.

aria-colspannumber | undefinedfalse

Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. @see aria-colindex @see aria-rowspan.

aria-controlsstring | undefinedfalse

Identifies the element (or elements) whose contents or presence are controlled by the current element. @see aria-owns.

aria-currentboolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefinedfalse

Indicates the element that represents the current item within a container or set of related elements.

aria-describedbystring | undefinedfalse

Identifies the element (or elements) that describes the object. @see aria-labelledby

aria-detailsstring | undefinedfalse

Identifies the element that provides a detailed, extended description for the object. @see aria-describedby.

aria-disabledboolean | "true" | "false" | undefinedfalse

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. @see aria-hidden @see aria-readonly.

aria-dropeffect"none" | "copy" | "execute" | "link" | "move" | "popup" | undefinedfalse

Indicates what functions can be performed when a dragged object is released on the drop target. @deprecated in ARIA 1.1

aria-errormessagestring | undefinedfalse

Identifies the element that provides an error message for the object. @see aria-invalid @see aria-describedby.

aria-expandedboolean | "true" | "false" | undefinedfalse

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

aria-flowtostring | undefinedfalse

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.

aria-grabbedboolean | "true" | "false" | undefinedfalse

Indicates an element’s “grabbed” state in a drag-and-drop operation. @deprecated in ARIA 1.1

aria-haspopupboolean | "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefinedfalse

Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.

aria-hiddenboolean | "true" | "false" | undefinedfalse

Indicates whether the element is exposed to an accessibility API. @see aria-disabled.

aria-invalidboolean | "true" | "false" | "grammar" | "spelling" | undefinedfalse

Indicates the entered value does not conform to the format expected by the application. @see aria-errormessage.

aria-keyshortcutsstring | undefinedfalse

Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.

aria-labelstring | undefinedfalse

Defines a string value that labels the current element. @see aria-labelledby.

aria-labelledbystring | undefinedfalse

Identifies the element (or elements) that labels the current element. @see aria-describedby.

aria-levelnumber | undefinedfalse

Defines the hierarchical level of an element within a structure.

aria-live"off" | "assertive" | "polite" | undefinedfalse

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.

aria-modalboolean | "true" | "false" | undefinedfalse

Indicates whether an element is modal when displayed.

aria-multilineboolean | "true" | "false" | undefinedfalse

Indicates whether a text box accepts multiple lines of input or only a single line.

aria-multiselectableboolean | "true" | "false" | undefinedfalse

Indicates that the user may select more than one item from the current selectable descendants.

aria-orientation"horizontal" | "vertical" | undefinedfalse

Indicates whether the element’s orientation is horizontal, vertical, or unknown/ambiguous.

aria-ownsstring | undefinedfalse

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. @see aria-controls.

aria-placeholderstring | undefinedfalse

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.

aria-posinsetnumber | undefinedfalse

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. @see aria-setsize.

aria-pressedboolean | "true" | "false" | "mixed" | undefinedfalse

Indicates the current “pressed” state of toggle buttons. @see aria-checked @see aria-selected.

aria-readonlyboolean | "true" | "false" | undefinedfalse

Indicates that the element is not editable, but is otherwise operable. @see aria-disabled.

aria-relevant"text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefinedfalse

Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. @see aria-atomic.

aria-requiredboolean | "true" | "false" | undefinedfalse

Indicates that user input is required on the element before a form may be submitted.

aria-roledescriptionstring | undefinedfalse

Defines a human-readable, author-localized description for the role of an element.

aria-rowcountnumber | undefinedfalse

Defines the total number of rows in a table, grid, or treegrid. @see aria-rowindex.

aria-rowindexnumber | undefinedfalse

Defines an element’s row index or position with respect to the total number of rows within a table, grid, or treegrid. @see aria-rowcount @see aria-rowspan.

aria-rowspannumber | undefinedfalse

Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. @see aria-rowindex @see aria-colspan.

aria-selectedboolean | "true" | "false" | undefinedfalse

Indicates the current “selected” state of various widgets. @see aria-checked @see aria-pressed.

aria-setsizenumber | undefinedfalse

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. @see aria-posinset.

aria-sort"none" | "ascending" | "descending" | "other" | undefinedfalse

Indicates if items in a table or grid are sorted in ascending or descending order.

aria-valuemaxnumber | undefinedfalse

Defines the maximum allowed value for a range widget.

aria-valueminnumber | undefinedfalse

Defines the minimum allowed value for a range widget.

aria-valuenownumber | undefinedfalse

Defines the current value for a range widget. @see aria-valuetext.

aria-valuetextstring | undefinedfalse

Defines the human readable text alternative of aria-valuenow for a range widget.

childrenReactNodefalse

The contents of the form control. @ignore

dangerouslySetInnerHTML{ __html: string; } | undefinedfalse
onCopy((event: ClipboardEvent<HTMLDivElement>) => void) | undefinedfalse
onCopyCapture((event: ClipboardEvent<HTMLDivElement>) => void) | undefinedfalse
onCut((event: ClipboardEvent<HTMLDivElement>) => void) | undefinedfalse
onCutCapture((event: ClipboardEvent<HTMLDivElement>) => void) | undefinedfalse
onPaste((event: ClipboardEvent<HTMLDivElement>) => void) | undefinedfalse
onPasteCapture((event: ClipboardEvent<HTMLDivElement>) => void) | undefinedfalse
onCompositionEnd((event: CompositionEvent<HTMLDivElement>) => void) | undefinedfalse
onCompositionEndCapture((event: CompositionEvent<HTMLDivElement>) => void) | undefinedfalse
onCompositionStart((event: CompositionEvent<HTMLDivElement>) => void) | undefinedfalse
onCompositionStartCapture((event: CompositionEvent<HTMLDivElement>) => void) | undefinedfalse
onCompositionUpdate((event: CompositionEvent<HTMLDivElement>) => void) | undefinedfalse
onCompositionUpdateCapture((event: CompositionEvent<HTMLDivElement>) => void) | undefinedfalse
onFocus((event: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void) | undefinedfalse
onFocusCapture((event: FocusEvent<HTMLDivElement>) => void) | undefinedfalse
onBlur((event: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void) | undefinedfalse
onBlurCapture((event: FocusEvent<HTMLDivElement>) => void) | undefinedfalse
onChangeCapture((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onBeforeInput((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onBeforeInputCapture((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onInput((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onInputCapture((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onReset((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onResetCapture((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onSubmit((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onSubmitCapture((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onInvalid((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onInvalidCapture((event: FormEvent<HTMLDivElement>) => void) | undefinedfalse
onLoad((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onError((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onErrorCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onKeyDown((event: KeyboardEvent<HTMLDivElement>) => void) | undefinedfalse
onKeyDownCapture((event: KeyboardEvent<HTMLDivElement>) => void) | undefinedfalse
onKeyPress((event: KeyboardEvent<HTMLDivElement>) => void) | undefinedfalse
onKeyPressCapture((event: KeyboardEvent<HTMLDivElement>) => void) | undefinedfalse
onKeyUp((event: KeyboardEvent<HTMLDivElement>) => void) | undefinedfalse
onKeyUpCapture((event: KeyboardEvent<HTMLDivElement>) => void) | undefinedfalse
onAbort((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onAbortCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onCanPlay((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onCanPlayCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onCanPlayThrough((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onCanPlayThroughCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onDurationChange((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onDurationChangeCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onEmptied((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onEmptiedCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onEncrypted((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onEncryptedCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onEnded((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onEndedCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadedData((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadedDataCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadedMetadata((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadedMetadataCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadStart((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onLoadStartCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onPause((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onPauseCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onPlay((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onPlayCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onPlaying((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onPlayingCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onProgress((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onProgressCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onRateChange((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onRateChangeCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSeeked((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSeekedCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSeeking((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSeekingCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onStalled((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onStalledCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSuspend((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSuspendCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onTimeUpdate((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onTimeUpdateCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onVolumeChange((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onVolumeChangeCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onWaiting((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onWaitingCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onAuxClick((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onAuxClickCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onClick((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onClickCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onContextMenu((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onContextMenuCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onDoubleClick((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onDoubleClickCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onDrag((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragEnd((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragEndCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragEnter((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragEnterCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragExit((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragExitCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragLeave((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragLeaveCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragOver((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragOverCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragStart((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDragStartCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDrop((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onDropCapture((event: DragEvent<HTMLDivElement>) => void) | undefinedfalse
onMouseDown((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseDownCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseEnter((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseLeave((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseMove((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseMoveCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseOut((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseOutCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseOver((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseOverCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseUp((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onMouseUpCapture((event: MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefinedfalse
onSelect((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onSelectCapture((event: SyntheticEvent<HTMLDivElement, Event>) => void) | undefinedfalse
onTouchCancel((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchCancelCapture((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchEnd((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchEndCapture((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchMove((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchMoveCapture((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchStart((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onTouchStartCapture((event: TouchEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerDown((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerDownCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerMove((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerMoveCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerUp((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerUpCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerCancel((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerCancelCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerEnter((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerEnterCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerLeave((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerLeaveCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerOver((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerOverCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerOut((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onPointerOutCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onGotPointerCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onGotPointerCaptureCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onLostPointerCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onLostPointerCaptureCapture((event: PointerEvent<HTMLDivElement>) => void) | undefinedfalse
onScroll((event: UIEvent<HTMLDivElement, UIEvent>) => void) | undefinedfalse
onScrollCapture((event: UIEvent<HTMLDivElement, UIEvent>) => void) | undefinedfalse
onWheel((event: WheelEvent<HTMLDivElement>) => void) | undefinedfalse
onWheelCapture((event: WheelEvent<HTMLDivElement>) => void) | undefinedfalse
onAnimationStart((event: AnimationEvent<HTMLDivElement>) => void) | undefinedfalse
onAnimationStartCapture((event: AnimationEvent<HTMLDivElement>) => void) | undefinedfalse
onAnimationEnd((event: AnimationEvent<HTMLDivElement>) => void) | undefinedfalse
onAnimationEndCapture((event: AnimationEvent<HTMLDivElement>) => void) | undefinedfalse
onAnimationIteration((event: AnimationEvent<HTMLDivElement>) => void) | undefinedfalse
onAnimationIterationCapture((event: AnimationEvent<HTMLDivElement>) => void) | undefinedfalse
onTransitionEnd((event: TransitionEvent<HTMLDivElement>) => void) | undefinedfalse
onTransitionEndCapture((event: TransitionEvent<HTMLDivElement>) => void) | undefinedfalse
variant"outlined" | "standard" | "filled" | undefinedfalse

The variant to use. The variant to use. The variant to use.

innerRef((instance: any) => void) | RefObject<any> | null | undefinedfalse
ref((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefinedfalse
labelReactNodefalse

The label content.

selectboolean | undefinedfalse

Render a Select element while passing the Input element to Select as input parameter. If this option is set you must pass the options of the select as children.

focusedboolean | undefinedfalse

If true, the component will be displayed in focused state.

fullWidthboolean | undefinedfalse

If true, the input will take up the full width of its container.

size"small" | "medium" | undefinedfalse

The size of the text field.

autoCompletestring | undefinedfalse

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.

valueunknownfalse

The value of the input element, required for a controlled component.

keystring | number | null | undefinedfalse
autoFocusboolean | undefinedfalse

If true, the input element will be focused during the first mount.

namestring | undefinedfalse

Name attribute of the input element.

typestring | undefinedfalse

Type of the input element. It should be a valid HTML5 input type.

inputPropsInputBaseComponentProps | undefinedfalse

Attributes applied to the input element. Attributes applied to the input element. Attributes applied to the input element.

inputRef((instance: any) => void) | RefObject<any> | null | undefinedfalse

Pass a ref to the input element.

requiredboolean | undefinedfalse

If true, the label is displayed as required and the input element` will be required.

hiddenLabelboolean | undefinedfalse

If true, the label will be hidden. This is used to increase density for a FilledInput. Be sure to add aria-label to the input element.

margin"none" | "normal" | "dense" | undefinedfalse

If dense or normal, will adjust vertical spacing of this and contained components.

InputPropsPartial<InputProps> | Partial<FilledInputProps> | Partial<OutlinedInputProps> | undefinedfalse

Props applied to the Input element. It will be a FilledInput, OutlinedInput or Input component depending on the variant prop value. Props applied to the Input element. It will be a FilledInput, OutlinedInput or Input component depending on the variant prop value. Props applied to the Input element. It will be a FilledInput, OutlinedInput or Input component depending on the variant prop value.

FormHelperTextPropsPartial<{ children?: ReactNode; disabled?: boolean | undefined; error?: boolean | undefined; filled?: boolean | undefined; focused?: boolean | undefined; margin?: "dense" | undefined; required?: boolean | undefined; variant?: "outlined" | ... 2 more ... | undefined; } & CommonProps<...> & Pick<...>> | undefinedfalse

Props applied to the FormHelperText element.

InputLabelPropsPartial<InputLabelProps> | undefinedfalse

Props applied to the InputLabel element.

multilineboolean | undefinedfalse

If true, a textarea element will be rendered instead of an input.

rowsstring | number | undefinedfalse

Number of rows to display when multiline option is set to true.

rowsMaxstring | number | undefinedfalse

Maximum number of rows to display when multiline option is set to true.

SelectPropsPartial<SelectProps> | undefinedfalse

Props applied to the Select element.