Skip to Content

Input

An input lets users enter and edit data.

import * as React from 'react';
import { LabeledInput } from '@itwin/itwinui-react';

export default () => {
  return (
    <>
      <LabeledInput
        label='Label'
        placeholder='Placeholder'
        message='Hint message'
      />
    </>
  );
};

Inputs are form elements meant to receive text input from the user. It is strongly recommended that each input have a label to indicate what info goes into the associated field. You can also display placeholder text within the field itself. This placeholder text is replaced by the actual text input by the user. Unlike the textarea, which allow entry of a more sizable quantity of text, inputs are meant to receive info that is a few words long at most. Use inputs wherever you need the user to enter information too specific or personal to be listed within a select.

Usage

Sizes

There are three different sizes, which can be specified using the size prop.

import * as React from 'react';
import { Input } from '@itwin/itwinui-react';

export default () => {
  return (
    <div className='demo-container'>
      <Input placeholder='Small' size='small' />
      <Input placeholder='Medium' />
      <Input placeholder='Large' size='large' />
    </div>
  );
};

Use the htmlSize prop for setting the native size attribute of the <input> element

Status

Status messages are sometimes required for bringing warnings or errors to the user’s attention. For example, required fields that are left empty, spelling mistakes, or to notify a user the username they have entered is available. Note that the status is conveyed differently when inline styling is applied.

import * as React from 'react';
import { LabeledInput } from '@itwin/itwinui-react';

export default () => {
  return (
    <div className='demo-container'>
      <LabeledInput
        label='Positive input'
        message='Happy message'
        status='positive'
        placeholder='Labeled input'
      />
      <LabeledInput
        label='Warning input'
        message='Cautious message'
        status='warning'
        placeholder='Labeled input'
      />
      <LabeledInput
        label='Negative input'
        message='Angry message'
        status='negative'
        placeholder='Labeled input'
      />
    </div>
  );
};

Inline

It’s possible to use inputs inline, in forms for example. Be aware that the status does display a bit differently when inline.

import * as React from 'react';
import { LabeledInput } from '@itwin/itwinui-react';

export default () => {
  return (
    <>
      <LabeledInput
        label='Inline input'
        status='positive'
        placeholder='Labeled input'
        displayStyle='inline'
      />
    </>
  );
};

With other inputs

You can pair an input and a button together.

import * as React from 'react';
import { InputGrid, Label, InputWithDecorations } from '@itwin/itwinui-react';
import { SvgCloseSmall } from '@itwin/itwinui-icons-react';

export default () => {
  return (
    <>
      <InputGrid>
        <Label htmlFor='input-1'>Street</Label>
        <InputWithDecorations>
          <InputWithDecorations.Input
            id='input-1'
            defaultValue='1051 Faribault Road'
          />
          <InputWithDecorations.Button label='Clear'>
            <SvgCloseSmall />
          </InputWithDecorations.Button>
        </InputWithDecorations>
      </InputGrid>
    </>
  );
};

There are more complex options of pairing inputs with other various form components when using the button group.

import * as React from 'react';
import { ButtonGroup, IconButton, Input, Button } from '@itwin/itwinui-react';
import { SvgSearch } from '@itwin/itwinui-icons-react';

export default () => {
  return (
    <div className='demo-container'>
      <ButtonGroup>
        <Button>Button 1</Button>
        <Input aria-label='Search bar' />
        <IconButton label='Search'>
          <SvgSearch />
        </IconButton>
      </ButtonGroup>
      <ButtonGroup>
        <Input
          aria-label='URL'
          value='https://itwinui.bentley.com/docs/buttongroup'
        />
        <Button styleType='high-visibility'>Copy</Button>
      </ButtonGroup>
    </div>
  );
};

Standalone

You may want to place the label somewhere separated from the input. This can be useful when you want to create columns where the text labels are all right aligned. Use <Input> in combination with <Label> when you want to separate the two. Be aware that it is an accessibility requirement for all inputs to be paired with a label.

import * as React from 'react';
import { Input, Label } from '@itwin/itwinui-react';

export default () => {
  return (
    <div className='demo-container'>
      <div className='demo-labels-container'>
        <Label htmlFor='first-name'>First name</Label>
        <Label htmlFor='middle-initial'>Middle initial</Label>
        <Label htmlFor='last-name'>Last name</Label>
      </div>
      <div className='demo-inputs-container'>
        <Input id='first-name' />
        <Input id='middle-initial' maxlength='1' />
        <Input id='last-name' />
      </div>
    </div>
  );
};

Props

Prop Description Default
label
Label of the input.
ReactNode
message
Message below the input. Does not apply to 'inline' input.
ReactNode
status
Status of the input. Status of input.
"positive" | "warning" | "negative"
svgIcon
Custom svg icon. Will override status icon if specified.
Element
wrapperProps
Pass props to wrapper element.
Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & { ref?: Ref<...>; }, "as" | "labelPlacement"> & InputGridOwnProps & { ...; }
displayStyle
Set display style of label. Supported values:
  • 'default' - label appears above input.
  • 'inline' - appears in the same line as input.
"default" | "inline"
'default'
messageContentProps
Passes properties for message content.
Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & { ref?: Ref<HTMLDivElement>; }
iconProps
Passes properties for icon.
Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & { ...; }, "as" | ... 4 more ... | "padded"> & { ...; } & Omit<...> & { ...; }
labelProps
Passes properties for label.
DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>
inputWrapperProps
Passes properties for input wrapper.
Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & { ref?: Ref<HTMLDivElement>; }
form
string
slot
string
style
CSSProperties
title
string
pattern
string
ref
Ref<HTMLInputElement>
key
Key
accept
string
alt
string
autoComplete
string
capture
boolean | "user" | "environment"
checked
boolean
crossOrigin
"" | "anonymous" | "use-credentials"
disabled
boolean
enterKeyHint
"search" | "enter" | "done" | "go" | "next" | "previous" | "send"
formAction
string
formEncType
string
formMethod
string
formNoValidate
boolean
formTarget
string
height
string | number
list
string
max
string | number
maxLength
number
min
string | number
minLength
number
multiple
boolean
name
string
placeholder
string
readOnly
boolean
required
boolean
src
string
step
string | number
type
HTMLInputTypeAttribute
value
string | number | readonly string[]
width
string | number
onChange
ChangeEventHandler<HTMLInputElement>
defaultChecked
boolean
defaultValue
string | number | readonly string[]
suppressContentEditableWarning
boolean
suppressHydrationWarning
boolean
accessKey
string
autoFocus
boolean
className
string
contentEditable
Booleanish | "inherit"
contextMenu
string
dir
string
draggable
Booleanish
hidden
boolean
id
string
lang
string
nonce
string
spellCheck
Booleanish
tabIndex
number
translate
"yes" | "no"
radioGroup
string
role
AriaRole
about
string
content
string
datatype
string
inlist
any
prefix
string
property
string
rel
string
resource
string
rev
string
typeof
string
vocab
string
autoCapitalize
string
autoCorrect
string
autoSave
string
color
string
itemProp
string
itemScope
boolean
itemType
string
itemID
string
itemRef
string
results
number
security
string
unselectable
"on" | "off"
inputMode
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
"search" | "text" | "email" | "tel" | "url" | "none" | "numeric" | "decimal"
is
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
string
aria-activedescendant
Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
string
aria-atomic
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.
Booleanish
aria-autocomplete
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.
"list" | "inline" | "none" | "both"
aria-braillelabel
Defines a string value that labels the current element, which is intended to be converted into Braille. @see aria-label.
string
aria-brailleroledescription
Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille. @see aria-roledescription.
string
aria-busy
Booleanish
aria-checked
Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. @see aria-pressed @see aria-selected.
boolean | "true" | "false" | "mixed"
aria-colcount
Defines the total number of columns in a table, grid, or treegrid. @see aria-colindex.
number
aria-colindex
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.
number
aria-colindextext
Defines a human readable text alternative of aria-colindex. @see aria-rowindextext.
string
aria-colspan
Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. @see aria-colindex @see aria-rowspan.
number
aria-controls
Identifies the element (or elements) whose contents or presence are controlled by the current element. @see aria-owns.
string
aria-current
Indicates the element that represents the current item within a container or set of related elements.
boolean | "time" | "step" | "date" | "true" | "false" | "page" | "location"
aria-describedby
Identifies the element (or elements) that describes the object. @see aria-labelledby
string
aria-description
Defines a string value that describes or annotates the current element. @see related aria-describedby.
string
aria-details
Identifies the element that provides a detailed, extended description for the object. @see aria-describedby.
string
aria-disabled
Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. @see aria-hidden @see aria-readonly.
Booleanish
aria-dropeffect
Indicates what functions can be performed when a dragged object is released on the drop target. @deprecated in ARIA 1.1
"link" | "none" | "copy" | "execute" | "move" | "popup"
aria-errormessage
Identifies the element that provides an error message for the object. @see aria-invalid @see aria-describedby.
string
aria-expanded
Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
Booleanish
aria-flowto
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.
string
aria-grabbed
Indicates an element's "grabbed" state in a drag-and-drop operation. @deprecated in ARIA 1.1
Booleanish
aria-haspopup
Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree"
aria-hidden
Indicates whether the element is exposed to an accessibility API. @see aria-disabled.
Booleanish
aria-invalid
Indicates the entered value does not conform to the format expected by the application. @see aria-errormessage.
boolean | "true" | "false" | "grammar" | "spelling"
aria-keyshortcuts
Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
string
aria-label
Defines a string value that labels the current element. @see aria-labelledby.
string
aria-labelledby
Identifies the element (or elements) that labels the current element. @see aria-describedby.
string
aria-level
Defines the hierarchical level of an element within a structure.
number
aria-live
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.
"off" | "assertive" | "polite"
aria-modal
Indicates whether an element is modal when displayed.
Booleanish
aria-multiline
Indicates whether a text box accepts multiple lines of input or only a single line.
Booleanish
aria-multiselectable
Indicates that the user may select more than one item from the current selectable descendants.
Booleanish
aria-orientation
Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
"horizontal" | "vertical"
aria-owns
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.
string
aria-placeholder
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.
string
aria-posinset
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.
number
aria-pressed
Indicates the current "pressed" state of toggle buttons. @see aria-checked @see aria-selected.
boolean | "true" | "false" | "mixed"
aria-readonly
Indicates that the element is not editable, but is otherwise operable. @see aria-disabled.
Booleanish
aria-relevant
Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. @see aria-atomic.
"text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"
aria-required
Indicates that user input is required on the element before a form may be submitted.
Booleanish
aria-roledescription
Defines a human-readable, author-localized description for the role of an element.
string
aria-rowcount
Defines the total number of rows in a table, grid, or treegrid. @see aria-rowindex.
number
aria-rowindex
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.
number
aria-rowindextext
Defines a human readable text alternative of aria-rowindex. @see aria-colindextext.
string
aria-rowspan
Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. @see aria-rowindex @see aria-colspan.
number
aria-selected
Indicates the current "selected" state of various widgets. @see aria-checked @see aria-pressed.
Booleanish
aria-setsize
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.
number
aria-sort
Indicates if items in a table or grid are sorted in ascending or descending order.
"none" | "ascending" | "descending" | "other"
aria-valuemax
Defines the maximum allowed value for a range widget.
number
aria-valuemin
Defines the minimum allowed value for a range widget.
number
aria-valuenow
Defines the current value for a range widget. @see aria-valuetext.
number
aria-valuetext
Defines the human readable text alternative of aria-valuenow for a range widget.
string
dangerouslySetInnerHTML
{ __html: string | TrustedHTML; }
onCopy
ClipboardEventHandler<HTMLInputElement>
onCopyCapture
ClipboardEventHandler<HTMLInputElement>
onCut
ClipboardEventHandler<HTMLInputElement>
onCutCapture
ClipboardEventHandler<HTMLInputElement>
onPaste
ClipboardEventHandler<HTMLInputElement>
onPasteCapture
ClipboardEventHandler<HTMLInputElement>
onCompositionEnd
CompositionEventHandler<HTMLInputElement>
onCompositionEndCapture
CompositionEventHandler<HTMLInputElement>
onCompositionStart
CompositionEventHandler<HTMLInputElement>
onCompositionStartCapture
CompositionEventHandler<HTMLInputElement>
onCompositionUpdate
CompositionEventHandler<HTMLInputElement>
onCompositionUpdateCapture
CompositionEventHandler<HTMLInputElement>
onFocus
FocusEventHandler<HTMLInputElement>
onFocusCapture
FocusEventHandler<HTMLInputElement>
onBlur
FocusEventHandler<HTMLInputElement>
onBlurCapture
FocusEventHandler<HTMLInputElement>
onChangeCapture
FormEventHandler<HTMLInputElement>
onBeforeInput
FormEventHandler<HTMLInputElement>
onBeforeInputCapture
FormEventHandler<HTMLInputElement>
onInput
FormEventHandler<HTMLInputElement>
onInputCapture
FormEventHandler<HTMLInputElement>
onReset
FormEventHandler<HTMLInputElement>
onResetCapture
FormEventHandler<HTMLInputElement>
onSubmit
FormEventHandler<HTMLInputElement>
onSubmitCapture
FormEventHandler<HTMLInputElement>
onInvalid
FormEventHandler<HTMLInputElement>
onInvalidCapture
FormEventHandler<HTMLInputElement>
onLoad
ReactEventHandler<HTMLInputElement>
onLoadCapture
ReactEventHandler<HTMLInputElement>
onError
ReactEventHandler<HTMLInputElement>
onErrorCapture
ReactEventHandler<HTMLInputElement>
onKeyDown
KeyboardEventHandler<HTMLInputElement>
onKeyDownCapture
KeyboardEventHandler<HTMLInputElement>
onKeyPress
@deprecated
KeyboardEventHandler<HTMLInputElement>
onKeyPressCapture
@deprecated
KeyboardEventHandler<HTMLInputElement>
onKeyUp
KeyboardEventHandler<HTMLInputElement>
onKeyUpCapture
KeyboardEventHandler<HTMLInputElement>
onAbort
ReactEventHandler<HTMLInputElement>
onAbortCapture
ReactEventHandler<HTMLInputElement>
onCanPlay
ReactEventHandler<HTMLInputElement>
onCanPlayCapture
ReactEventHandler<HTMLInputElement>
onCanPlayThrough
ReactEventHandler<HTMLInputElement>
onCanPlayThroughCapture
ReactEventHandler<HTMLInputElement>
onDurationChange
ReactEventHandler<HTMLInputElement>
onDurationChangeCapture
ReactEventHandler<HTMLInputElement>
onEmptied
ReactEventHandler<HTMLInputElement>
onEmptiedCapture
ReactEventHandler<HTMLInputElement>
onEncrypted
ReactEventHandler<HTMLInputElement>
onEncryptedCapture
ReactEventHandler<HTMLInputElement>
onEnded
ReactEventHandler<HTMLInputElement>
onEndedCapture
ReactEventHandler<HTMLInputElement>
onLoadedData
ReactEventHandler<HTMLInputElement>
onLoadedDataCapture
ReactEventHandler<HTMLInputElement>
onLoadedMetadata
ReactEventHandler<HTMLInputElement>
onLoadedMetadataCapture
ReactEventHandler<HTMLInputElement>
onLoadStart
ReactEventHandler<HTMLInputElement>
onLoadStartCapture
ReactEventHandler<HTMLInputElement>
onPause
ReactEventHandler<HTMLInputElement>
onPauseCapture
ReactEventHandler<HTMLInputElement>
onPlay
ReactEventHandler<HTMLInputElement>
onPlayCapture
ReactEventHandler<HTMLInputElement>
onPlaying
ReactEventHandler<HTMLInputElement>
onPlayingCapture
ReactEventHandler<HTMLInputElement>
onProgress
ReactEventHandler<HTMLInputElement>
onProgressCapture
ReactEventHandler<HTMLInputElement>
onRateChange
ReactEventHandler<HTMLInputElement>
onRateChangeCapture
ReactEventHandler<HTMLInputElement>
onResize
ReactEventHandler<HTMLInputElement>
onResizeCapture
ReactEventHandler<HTMLInputElement>
onSeeked
ReactEventHandler<HTMLInputElement>
onSeekedCapture
ReactEventHandler<HTMLInputElement>
onSeeking
ReactEventHandler<HTMLInputElement>
onSeekingCapture
ReactEventHandler<HTMLInputElement>
onStalled
ReactEventHandler<HTMLInputElement>
onStalledCapture
ReactEventHandler<HTMLInputElement>
onSuspend
ReactEventHandler<HTMLInputElement>
onSuspendCapture
ReactEventHandler<HTMLInputElement>
onTimeUpdate
ReactEventHandler<HTMLInputElement>
onTimeUpdateCapture
ReactEventHandler<HTMLInputElement>
onVolumeChange
ReactEventHandler<HTMLInputElement>
onVolumeChangeCapture
ReactEventHandler<HTMLInputElement>
onWaiting
ReactEventHandler<HTMLInputElement>
onWaitingCapture
ReactEventHandler<HTMLInputElement>
onAuxClick
MouseEventHandler<HTMLInputElement>
onAuxClickCapture
MouseEventHandler<HTMLInputElement>
onClick
MouseEventHandler<HTMLInputElement>
onClickCapture
MouseEventHandler<HTMLInputElement>
onContextMenu
MouseEventHandler<HTMLInputElement>
onContextMenuCapture
MouseEventHandler<HTMLInputElement>
onDoubleClick
MouseEventHandler<HTMLInputElement>
onDoubleClickCapture
MouseEventHandler<HTMLInputElement>
onDrag
DragEventHandler<HTMLInputElement>
onDragCapture
DragEventHandler<HTMLInputElement>
onDragEnd
DragEventHandler<HTMLInputElement>
onDragEndCapture
DragEventHandler<HTMLInputElement>
onDragEnter
DragEventHandler<HTMLInputElement>
onDragEnterCapture
DragEventHandler<HTMLInputElement>
onDragExit
DragEventHandler<HTMLInputElement>
onDragExitCapture
DragEventHandler<HTMLInputElement>
onDragLeave
DragEventHandler<HTMLInputElement>
onDragLeaveCapture
DragEventHandler<HTMLInputElement>
onDragOver
DragEventHandler<HTMLInputElement>
onDragOverCapture
DragEventHandler<HTMLInputElement>
onDragStart
DragEventHandler<HTMLInputElement>
onDragStartCapture
DragEventHandler<HTMLInputElement>
onDrop
DragEventHandler<HTMLInputElement>
onDropCapture
DragEventHandler<HTMLInputElement>
onMouseDown
MouseEventHandler<HTMLInputElement>
onMouseDownCapture
MouseEventHandler<HTMLInputElement>
onMouseEnter
MouseEventHandler<HTMLInputElement>
onMouseLeave
MouseEventHandler<HTMLInputElement>
onMouseMove
MouseEventHandler<HTMLInputElement>
onMouseMoveCapture
MouseEventHandler<HTMLInputElement>
onMouseOut
MouseEventHandler<HTMLInputElement>
onMouseOutCapture
MouseEventHandler<HTMLInputElement>
onMouseOver
MouseEventHandler<HTMLInputElement>
onMouseOverCapture
MouseEventHandler<HTMLInputElement>
onMouseUp
MouseEventHandler<HTMLInputElement>
onMouseUpCapture
MouseEventHandler<HTMLInputElement>
onSelect
ReactEventHandler<HTMLInputElement>
onSelectCapture
ReactEventHandler<HTMLInputElement>
onTouchCancel
TouchEventHandler<HTMLInputElement>
onTouchCancelCapture
TouchEventHandler<HTMLInputElement>
onTouchEnd
TouchEventHandler<HTMLInputElement>
onTouchEndCapture
TouchEventHandler<HTMLInputElement>
onTouchMove
TouchEventHandler<HTMLInputElement>
onTouchMoveCapture
TouchEventHandler<HTMLInputElement>
onTouchStart
TouchEventHandler<HTMLInputElement>
onTouchStartCapture
TouchEventHandler<HTMLInputElement>
onPointerDown
PointerEventHandler<HTMLInputElement>
onPointerDownCapture
PointerEventHandler<HTMLInputElement>
onPointerMove
PointerEventHandler<HTMLInputElement>
onPointerMoveCapture
PointerEventHandler<HTMLInputElement>
onPointerUp
PointerEventHandler<HTMLInputElement>
onPointerUpCapture
PointerEventHandler<HTMLInputElement>
onPointerCancel
PointerEventHandler<HTMLInputElement>
onPointerCancelCapture
PointerEventHandler<HTMLInputElement>
onPointerEnter
PointerEventHandler<HTMLInputElement>
onPointerEnterCapture
PointerEventHandler<HTMLInputElement>
onPointerLeave
PointerEventHandler<HTMLInputElement>
onPointerLeaveCapture
PointerEventHandler<HTMLInputElement>
onPointerOver
PointerEventHandler<HTMLInputElement>
onPointerOverCapture
PointerEventHandler<HTMLInputElement>
onPointerOut
PointerEventHandler<HTMLInputElement>
onPointerOutCapture
PointerEventHandler<HTMLInputElement>
onGotPointerCapture
PointerEventHandler<HTMLInputElement>
onGotPointerCaptureCapture
PointerEventHandler<HTMLInputElement>
onLostPointerCapture
PointerEventHandler<HTMLInputElement>
onLostPointerCaptureCapture
PointerEventHandler<HTMLInputElement>
onScroll
UIEventHandler<HTMLInputElement>
onScrollCapture
UIEventHandler<HTMLInputElement>
onWheel
WheelEventHandler<HTMLInputElement>
onWheelCapture
WheelEventHandler<HTMLInputElement>
onAnimationStart
AnimationEventHandler<HTMLInputElement>
onAnimationStartCapture
AnimationEventHandler<HTMLInputElement>
onAnimationEnd
AnimationEventHandler<HTMLInputElement>
onAnimationEndCapture
AnimationEventHandler<HTMLInputElement>
onAnimationIteration
AnimationEventHandler<HTMLInputElement>
onAnimationIterationCapture
AnimationEventHandler<HTMLInputElement>
onTransitionEnd
TransitionEventHandler<HTMLInputElement>
onTransitionEndCapture
TransitionEventHandler<HTMLInputElement>
size
Modify size of the input.
"small" | "large"
htmlSize
Modify the native size attribute of the <input> element. The width or inline-size property must be unset in order to use this prop.
number
as
"input" | ("input" & (ComponentClass<unknown, any> | FunctionComponent<unknown>))