SearchFieldProps
Extends
Omit<AriaSearchFieldProps,"className"|"pattern"|"type">.RefAttributes<HTMLDivElement>
Extended by
Properties
aria-activedescendant?
optionalaria-activedescendant:string
Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
Inherited from
Omit.aria-activedescendant
aria-autocomplete?
optionalaria-autocomplete:"list"|"none"|"inline"|"both"
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.
Inherited from
Omit.aria-autocomplete
aria-controls?
optionalaria-controls:string
Identifies the element (or elements) whose contents or presence are controlled by the current element.
Inherited from
Omit.aria-controls
aria-describedby?
optionalaria-describedby:string
Identifies the element (or elements) that describes the object.
Inherited from
Omit.aria-describedby
aria-details?
optionalaria-details:string
Identifies the element (or elements) that provide a detailed, extended description for the object.
Inherited from
Omit.aria-details
aria-errormessage?
optionalaria-errormessage:string
Identifies the element that provides an error message for the object.
Inherited from
Omit.aria-errormessage
aria-haspopup?
optionalaria-haspopup:boolean|"dialog"|"grid"|"listbox"|"menu"|"tree"|"true"|"false"
Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
Inherited from
Omit.aria-haspopup
aria-label?
optionalaria-label:string
Defines a string value that labels the current element.
Inherited from
Omit.aria-label
aria-labelledby?
optionalaria-labelledby:string
Identifies the element (or elements) that labels the current element.
Inherited from
Omit.aria-labelledby
autoComplete?
optionalautoComplete:string
Describes the type of autocomplete functionality the input should provide if any. See MDN.
Inherited from
Omit.autoComplete
autoCorrect?
optionalautoCorrect:string
An attribute that takes as its value a space-separated string that describes what, if any, type of autocomplete functionality the input should provide. See MDN.
Inherited from
Omit.autoCorrect
autoFocus?
optionalautoFocus:boolean
Whether the element should receive focus on render.
Inherited from
Omit.autoFocus
children?
optionalchildren:ChildrenOrFunction<SearchFieldRenderProps>
The children of the component. A function may be provided to alter the children based on component state.
Inherited from
Omit.children
classNames?
optionalclassNames:object
clear?
optionalclear:ClassNameOrFunction<ButtonRenderProps>
field?
optionalfield:ClassNameOrFunction<SearchFieldRenderProps>
input?
optionalinput:ClassNameOrFunction<InputRenderProps>
loading?
optionalloading:string
search?
optionalsearch:string
defaultValue?
optionaldefaultValue:string
The default value (uncontrolled).
Inherited from
Omit.defaultValue
dir?
optionaldir:string
Inherited from
Omit.dir
enterKeyHint?
optionalenterKeyHint:"search"|"enter"|"done"|"go"|"next"|"previous"|"send"
An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See MDN.
Inherited from
Omit.enterKeyHint
excludeFromTabOrder?
optionalexcludeFromTabOrder:boolean
Whether to exclude the element from the sequential tab order. If true, the element will not be focusable via the keyboard by tabbing. This should be avoided except in rare scenarios where an alternative means of accessing the element or its functionality via the keyboard is available.
Inherited from
Omit.excludeFromTabOrder
form?
optionalform:string
The <form> element to associate the input with.
The value of this attribute must be the id of a <form> in the same document.
See MDN.
Inherited from
Omit.form
hidden?
optionalhidden:boolean
Inherited from
Omit.hidden
id?
optionalid:string
The element's unique identifier. See MDN.
Inherited from
Omit.id
inert?
optionalinert:boolean
Inherited from
Omit.inert
inputMode?
optionalinputMode:"none"|"search"|"text"|"tel"|"url"|"email"|"numeric"|"decimal"
Hints at the type of data that might be entered by the user while editing the element or its contents. See MDN.
Inherited from
Omit.inputMode
inputProps?
optionalinputProps:Omit<InputProps,"type">
isDisabled?
optionalisDisabled:boolean
Whether the input is disabled.
Inherited from
Omit.isDisabled
isInvalid?
optionalisInvalid:boolean
Whether the input value is invalid.
Inherited from
Omit.isInvalid
isLoading?
optionalisLoading:boolean
Displays a loading spinner.
isReadOnly?
optionalisReadOnly:boolean
Whether the input can be selected but not changed by the user.
Inherited from
Omit.isReadOnly
isRequired?
optionalisRequired:boolean
Whether user input is required on the input before form submission.
Inherited from
Omit.isRequired
key?
optionalkey:Key|null
Inherited from
RefAttributes.key
lang?
optionallang:string
Inherited from
Omit.lang
maxLength?
optionalmaxLength:number
The maximum number of characters supported by the input. See MDN.
Inherited from
Omit.maxLength
minLength?
optionalminLength:number
The minimum number of characters required by the input. See MDN.
Inherited from
Omit.minLength
name?
optionalname:string
The name of the input element, used when submitting an HTML form. See MDN.
Inherited from
Omit.name
onAnimationEnd?
optionalonAnimationEnd:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationEnd
onAnimationEndCapture?
optionalonAnimationEndCapture:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationEndCapture
onAnimationIteration?
optionalonAnimationIteration:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationIteration
onAnimationIterationCapture?
optionalonAnimationIterationCapture:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationIterationCapture
onAnimationStart?
optionalonAnimationStart:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationStart
onAnimationStartCapture?
optionalonAnimationStartCapture:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationStartCapture
onAuxClick?
optionalonAuxClick:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onAuxClick
onAuxClickCapture?
optionalonAuxClickCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onAuxClickCapture
onBeforeInput?
optionalonBeforeInput:FormEventHandler<HTMLInputElement>
Handler that is called when the input value is about to be modified. See MDN.
Inherited from
Omit.onBeforeInput
onBlur()?
optionalonBlur: (e) =>void
Handler that is called when the element loses focus.
Parameters
e
FocusEvent<HTMLInputElement>
Returns
void
Inherited from
Omit.onBlur
onChange()?
optionalonChange: (value) =>void
Handler that is called when the value changes.
Parameters
value
string
Returns
void
Inherited from
Omit.onChange
onClear()?
optionalonClear: () =>void
Handler that is called when the clear button is pressed.
Returns
void
Inherited from
Omit.onClear
onClick?
optionalonClick:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onClick
onClickCapture?
optionalonClickCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onClickCapture
onCompositionEnd?
optionalonCompositionEnd:CompositionEventHandler<HTMLInputElement>
Handler that is called when a text composition system completes or cancels the current text composition session. See MDN.
Inherited from
Omit.onCompositionEnd
onCompositionStart?
optionalonCompositionStart:CompositionEventHandler<HTMLInputElement>
Handler that is called when a text composition system starts a new text composition session. See MDN.
Inherited from
Omit.onCompositionStart
onCompositionUpdate?
optionalonCompositionUpdate:CompositionEventHandler<HTMLInputElement>
Handler that is called when a new character is received in the current text composition session. See MDN.
Inherited from
Omit.onCompositionUpdate
onContextMenu?
optionalonContextMenu:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onContextMenu
onContextMenuCapture?
optionalonContextMenuCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onContextMenuCapture
onCopy?
optionalonCopy:ClipboardEventHandler<HTMLInputElement>
Handler that is called when the user copies text. See MDN.
Inherited from
Omit.onCopy
onCut?
optionalonCut:ClipboardEventHandler<HTMLInputElement>
Handler that is called when the user cuts text. See MDN.
Inherited from
Omit.onCut
onDoubleClick?
optionalonDoubleClick:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onDoubleClick
onDoubleClickCapture?
optionalonDoubleClickCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onDoubleClickCapture
onFocus()?
optionalonFocus: (e) =>void
Handler that is called when the element receives focus.
Parameters
e
FocusEvent<HTMLInputElement>
Returns
void
Inherited from
Omit.onFocus
onFocusChange()?
optionalonFocusChange: (isFocused) =>void
Handler that is called when the element's focus status changes.
Parameters
isFocused
boolean
Returns
void
Inherited from
Omit.onFocusChange
onGotPointerCapture?
optionalonGotPointerCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onGotPointerCapture
onGotPointerCaptureCapture?
optionalonGotPointerCaptureCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onGotPointerCaptureCapture
onInput?
optionalonInput:FormEventHandler<HTMLInputElement>
Handler that is called when the input value is modified. See MDN.
Inherited from
Omit.onInput
onKeyDown()?
optionalonKeyDown: (e) =>void
Handler that is called when a key is pressed.
Parameters
e
KeyboardEvent
Returns
void
Inherited from
Omit.onKeyDown
onKeyUp()?
optionalonKeyUp: (e) =>void
Handler that is called when a key is released.
Parameters
e
KeyboardEvent
Returns
void
Inherited from
Omit.onKeyUp
onLostPointerCapture?
optionalonLostPointerCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onLostPointerCapture
onLostPointerCaptureCapture?
optionalonLostPointerCaptureCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onLostPointerCaptureCapture
onMouseDown?
optionalonMouseDown:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseDown
onMouseDownCapture?
optionalonMouseDownCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseDownCapture
onMouseEnter?
optionalonMouseEnter:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseEnter
onMouseLeave?
optionalonMouseLeave:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseLeave
onMouseMove?
optionalonMouseMove:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseMove
onMouseMoveCapture?
optionalonMouseMoveCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseMoveCapture
onMouseOut?
optionalonMouseOut:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseOut
onMouseOutCapture?
optionalonMouseOutCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseOutCapture
onMouseOver?
optionalonMouseOver:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseOver
onMouseOverCapture?
optionalonMouseOverCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseOverCapture
onMouseUp?
optionalonMouseUp:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseUp
onMouseUpCapture?
optionalonMouseUpCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseUpCapture
onPaste?
optionalonPaste:ClipboardEventHandler<HTMLInputElement>
Handler that is called when the user pastes text. See MDN.
Inherited from
Omit.onPaste
onPointerCancel?
optionalonPointerCancel:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerCancel
onPointerCancelCapture?
optionalonPointerCancelCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerCancelCapture
onPointerDown?
optionalonPointerDown:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerDown
onPointerDownCapture?
optionalonPointerDownCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerDownCapture
onPointerEnter?
optionalonPointerEnter:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerEnter
onPointerLeave?
optionalonPointerLeave:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerLeave
onPointerMove?
optionalonPointerMove:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerMove
onPointerMoveCapture?
optionalonPointerMoveCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerMoveCapture
onPointerOut?
optionalonPointerOut:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerOut
onPointerOutCapture?
optionalonPointerOutCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerOutCapture
onPointerOver?
optionalonPointerOver:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerOver
onPointerOverCapture?
optionalonPointerOverCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerOverCapture
onPointerUp?
optionalonPointerUp:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerUp
onPointerUpCapture?
optionalonPointerUpCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerUpCapture
onScroll?
optionalonScroll:UIEventHandler<HTMLDivElement>
Inherited from
Omit.onScroll
onScrollCapture?
optionalonScrollCapture:UIEventHandler<HTMLDivElement>
Inherited from
Omit.onScrollCapture
onSelect?
optionalonSelect:ReactEventHandler<HTMLInputElement>
Handler that is called when text in the input is selected. See MDN.
Inherited from
Omit.onSelect
onSubmit()?
optionalonSubmit: (value) =>void
Handler that is called when the SearchField is submitted.
Parameters
value
string
Returns
void
Inherited from
Omit.onSubmit
onTouchCancel?
optionalonTouchCancel:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchCancel
onTouchCancelCapture?
optionalonTouchCancelCapture:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchCancelCapture
onTouchEnd?
optionalonTouchEnd:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchEnd
onTouchEndCapture?
optionalonTouchEndCapture:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchEndCapture
onTouchMove?
optionalonTouchMove:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchMove
onTouchMoveCapture?
optionalonTouchMoveCapture:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchMoveCapture
onTouchStart?
optionalonTouchStart:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchStart
onTouchStartCapture?
optionalonTouchStartCapture:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchStartCapture
onTransitionCancel?
optionalonTransitionCancel:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionCancel
onTransitionCancelCapture?
optionalonTransitionCancelCapture:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionCancelCapture
onTransitionEnd?
optionalonTransitionEnd:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionEnd
onTransitionEndCapture?
optionalonTransitionEndCapture:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionEndCapture
onTransitionRun?
optionalonTransitionRun:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionRun
onTransitionRunCapture?
optionalonTransitionRunCapture:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionRunCapture
onTransitionStart?
optionalonTransitionStart:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionStart
onTransitionStartCapture?
optionalonTransitionStartCapture:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionStartCapture
onWheel?
optionalonWheel:WheelEventHandler<HTMLDivElement>
Inherited from
Omit.onWheel
onWheelCapture?
optionalonWheelCapture:WheelEventHandler<HTMLDivElement>
Inherited from
Omit.onWheelCapture
ref?
optionalref:Ref<HTMLDivElement>
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).
See
Inherited from
RefAttributes.ref
slot?
optionalslot:string|null
A slot name for the component. Slots allow the component to receive props from a parent component.
An explicit null value indicates that the local props completely override all props received from a parent.
Inherited from
Omit.slot
spellCheck?
optionalspellCheck:string
An enumerated attribute that defines whether the element may be checked for spelling errors. See MDN.
Inherited from
Omit.spellCheck
style?
optionalstyle:StyleOrFunction<SearchFieldRenderProps>
The inline style for the element. A function may be provided to compute the style based on component state.
Inherited from
Omit.style
translate?
optionaltranslate:"yes"|"no"
Inherited from
Omit.translate
validate()?
optionalvalidate: (value) =>true|ValidationError|null|undefined
A function that returns an error message if a given value is invalid.
Validation errors are displayed to the user when the form is submitted
if validationBehavior="native". For realtime validation, use the isInvalid
prop instead.
Parameters
value
string
Returns
true | ValidationError | null | undefined
Inherited from
Omit.validate
validationBehavior?
optionalvalidationBehavior:"native"|"aria"
Whether to use native HTML form validation to prevent form submission when the value is missing or invalid, or mark the field as required or invalid via ARIA.
Default
'native'
Inherited from
Omit.validationBehavior
value?
optionalvalue:string
The current value (controlled).
Inherited from
Omit.value
variant?
optionalvariant:"filled"|"outlined"