idRequired
string
valueRequired
string | number | readonly string[]
onChangeRequired
FormEventHandler<HTMLInputElement>
aria-labelledbyRequired
string
aria-labelRequired
string
labelRequired
ReactNode
name
string
autoFocus
boolean
aria-describedby
string
data
DataAttributeMap
autoComplete
string
disabled
boolean
required
boolean
tone
"caution" | "critical" | "neutral" | "positive"
description
ReactNode
message
ReactNode
reserveMessageSpace
boolean
onBlur
FocusEventHandler<HTMLInputElement>
onFocus
FocusEventHandler<HTMLInputElement>
placeholder
string
onVisibilityToggle
(visible: boolean) => void
visibilityToggleLabel
string
secondaryLabel
ReactNode
tertiaryLabel
ReactNode
ref
Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref).
string | (instance: HTMLInputElement | null) => void | RefObject<HTMLInputElement>