Common components (e.g. <div>)·续1
accessKey: A string. Specifies a keyboard shortcut for the element. Not generally recommended.aria-*: ARIA attributes let you specify the accessibility tree information for this element. See ARIA attributes for a complete reference. In React, all ARIA attribute names are exactly the same as in HTML.autoCapitalize: A string. Specifies whether and how the user input should be capitalized.className: A string. Specifies the element's CSS class name. Read more about applying CSS styles.contentEditable: A boolean. Iftrue, the browser lets the user edit the rendered element directly. This is used to implement rich text input libraries like Lexical. React warns if you try to pass React children to an element withcontentEditable={true}because React will not be able to update its content after user edits.data-*: Data attributes let you attach some string data to the element, for exampledata-fruit="banana". In React, they are not commonly used because you would usually read data from props or state instead.dir: Either'ltr'or'rtl'. Specifies the text direction of the element.draggable: A boolean. Specifies whether the element is draggable. Part of HTML Drag and Drop API.enterKeyHint: A string. Specifies which action to present for the enter key on virtual keyboards.htmlFor: A string. For<label>and<output>, lets you associate the label with some control. Same asforHTML attribute. React uses the standard DOM property names (htmlFor) instead of HTML attribute names.hidden: A boolean or a string. Specifies whether the element should be hidden.id: A string. Specifies a unique identifier for this element, which can be used to find it later or connect it with other elements. Generate it withuseIdto avoid clashes between multiple instances of the same component.is: A string. If specified, the component will behave like a custom element.inputMode: A string. Specifies what kind of keyboard to display (for example, text, number or telephone).itemProp: A string. Specifies which property the element represents for structured data crawlers.lang: A string. Specifies the language of the element.onAnimationEnd: AnAnimationEventhandler function. Fires when a CSS animation completes.onAnimationEndCapture: A version ofonAnimationEndthat fires in the capture phase.onAnimationIteration: AnAnimationEventhandler function. Fires when an iteration of a CSS animation ends, and another one begins.onAnimationIterationCapture: A version ofonAnimationIterationthat fires in the capture phase.onAnimationStart: AnAnimationEventhandler function. Fires when a CSS animation starts.onAnimationStartCapture:onAnimationStart, but fires in the capture phase.onAuxClick: AMouseEventhandler function. Fires when a non-primary pointer button was clicked.onAuxClickCapture: A version ofonAuxClickthat fires in the capture phase.onBeforeInput: AnInputEventhandler function. Fires before the value of an editable element is modified. React does not yet use the nativebeforeinputevent, and instead attempts to polyfill it using other events.onBeforeInputCapture: A version ofonBeforeInputthat fires in the capture phase.onBlur: AFocusEventhandler function. Fires when an element lost focus. Unlike the built-in browserblurevent, in React theonBlurevent bubbles.onBlurCapture: A version ofonBlurthat fires in the capture phase.onClick: AMouseEventhandler function. Fires when the primary button was clicked on the pointing device.onClickCapture: A version ofonClickthat fires in the capture phase.onCompositionStart: ACompositionEventhandler function. Fires when an input method editor starts a new composition session.onCompositionStartCapture: A version ofonCompositionStartthat fires in the capture phase.onCompositionEnd: ACompositionEventhandler function. Fires when an input method editor completes or cancels a composition session.onCompositionEndCapture: A version ofonCompositionEndthat fires in the capture phase.onCompositionUpdate: ACompositionEventhandler function. Fires when an input method editor receives a new character.onCompositionUpdateCapture: A version ofonCompositionUpdatethat fires in the capture phase.onContextMenu: AMouseEventhandler function. Fires when the user tries to open a context menu.onContextMenuCapture: A version ofonContextMenuthat fires in the capture phase.onCopy: AClipboardEventhandler function. Fires when the user tries to copy something into the clipboard.onCopyCapture: A version ofonCopythat fires in the capture phase.onCut: AClipboardEventhandler function. Fires when the user tries to cut something into the clipboard.onCutCapture: A version ofonCutthat fires in the capture phase.onDoubleClick: AMouseEventhandler function. Fires when the user clicks twice. Corresponds to the browserdblclickevent.onDoubleClickCapture: A version ofonDoubleClickthat fires in the capture phase.onDrag: ADragEventhandler function. Fires while the user is dragging something.onDragCapture: A version ofonDragthat fires in the capture phase.onDragEnd: ADragEventhandler function. Fires when the user stops dragging something.onDragEndCapture: A version ofonDragEndthat fires in the capture phase.onDragEnter: ADragEventhandler function. Fires when the dragged content enters a valid drop target.onDragEnterCapture: A version ofonDragEnterthat fires in the capture phase.onDragOver: ADragEventhandler function. Fires on a valid drop target while the dragged content is dragged over it. You must calle.preventDefault()here to allow dropping.onDragOverCapture: A version ofonDragOverthat fires in the capture phase.onDragStart: ADragEventhandler function. Fires when the user starts dragging an element.onDragStartCapture: A version ofonDragStartthat fires in the capture phase.onDrop: ADragEventhandler function. Fires when something is dropped on a valid drop target.onDropCapture: A version ofonDropthat fires in the capture phase.onFocus: AFocusEventhandler function. Fires when an element receives focus. Unlike the built-in browserfocusevent, in React theonFocusevent bubbles.onFocusCapture: A version ofonFocusthat fires in the capture phase.onGotPointerCapture: APointerEventhandler function. Fires when an element programmatically captures a pointer.onGotPointerCaptureCapture: A version ofonGotPointerCapturethat fires in the capture phase.onKeyDown: AKeyboardEventhandler function. Fires when a key is pressed.onKeyDownCapture: A version ofonKeyDownthat fires in the capture phase.onKeyPress: AKeyboardEventhandler function. Deprecated. UseonKeyDownoronBeforeInputinstead.onKeyPressCapture: A version ofonKeyPressthat fires in the capture phase.onKeyUp: AKeyboardEventhandler function. Fires when a key is released.onKeyUpCapture: A version ofonKeyUpthat fires in the capture phase.onLostPointerCapture: APointerEventhandler function. Fires when an element stops capturing a pointer.onLostPointerCaptureCapture: A version ofonLostPointerCapturethat fires in the capture phase.onMouseDown: AMouseEventhandler function. Fires when the pointer is pressed down.onMouseDownCapture: A version ofonMouseDownthat fires in the capture phase.onMouseEnter: AMouseEventhandler function. Fires when the pointer moves inside an element. Does not have a capture phase. Instead,onMouseLeaveandonMouseEnterpropagate from the element being left to the one being entered.onMouseLeave: AMouseEventhandler function. Fires when the pointer moves outside an element. Does not have a capture phase. Instead,onMouseLeaveandonMouseEnterpropagate from the element being left to the one being entered.onMouseMove: AMouseEventhandler function. Fires when the pointer changes coordinates.onMouseMoveCapture: A version ofonMouseMovethat fires in the capture phase.onMouseOut: AMouseEventhandler function. Fires when the pointer moves outside an element, or if it moves into a child element.onMouseOutCapture: A version ofonMouseOutthat fires in the capture phase.onMouseUp: AMouseEventhandler function. Fires when the pointer is released.onMouseUpCapture: A version ofonMouseUpthat fires in the capture phase.onPointerCancel: APointerEventhandler function. Fires when the browser cancels a pointer interaction.onPointerCancelCapture: A version ofonPointerCancelthat fires in the capture phase.onPointerDown: APointerEventhandler function. Fires when a pointer becomes active.onPointerDownCapture: A version ofonPointerDownthat fires in the capture phase.
