You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
children: A React node (an element, a string, a number, a portal, an empty node like null, undefined and booleans, or an array of other React nodes). Specifies the content inside the component. When you use JSX, you will usually specify the children prop implicitly by nesting tags like <div><span /></div>.
167
-
dangerouslySetInnerHTML: An object of the form { __html: '<p>some html</p>' } with a raw HTML string inside. Overrides the innerHTML property of the DOM node and displays the passed HTML inside. This should be used with extreme caution! If the HTML inside isn’t trusted (for example, if it’s based on user data), you risk introducing an XSS vulnerability. Read more about using dangerouslySetInnerHTML.
169
+
dangerouslySetInnerHTML: An object of the form { __html: '<p>some html</p>' } with a raw HTML string inside. Overrides the innerHTML property of the DOM node and displays the passed HTML inside. This should be used with extreme caution! If the HTML inside isn't trusted (for example, if it's based on user data), you risk introducing an XSS vulnerability. Read more about using dangerouslySetInnerHTML.
168
170
ref: A ref object from useRef or createRef, or a ref callback function, or a string for legacy refs. Your ref will be filled with the DOM element for this node. Read more about manipulating the DOM with refs.
169
-
suppressContentEditableWarning: A boolean. If true, suppresses the warning that React shows for elements that both have children and contentEditable={true} (which normally do not work together). Use this if you’re building a text input library that manages the contentEditable content manually.
170
-
suppressHydrationWarning: A boolean. If you use server rendering, normally there is a warning when the server and the client render different content. In some rare cases (like timestamps), it is very hard or impossible to guarantee an exact match. If you set suppressHydrationWarning to true, React will not warn you about mismatches in the attributes and the content of that element. It only works one level deep, and is intended to be used as an escape hatch. Don’t overuse it. Read more about suppressing hydration errors.
171
-
style: An object with CSS styles, for example { fontWeight: 'bold', margin: 20 }. Similarly to the DOM style property, the CSS property names need to be written as camelCase, for example fontWeight instead of font-weight. You can pass strings or numbers as values. If you pass a number, like width: 100, React will automatically append px (“pixels”) to the value unless it’s a unitless property. We recommend using style only for dynamic styles where you don’t know the style values ahead of time. In other cases, applying plain CSS classes with className is more efficient. Read more about applying CSS with className and styles.
172
-
"""# noqa: E501
171
+
suppressContentEditableWarning: A boolean. If true, suppresses the warning that React shows for elements that both have children and contentEditable={true} (which normally do not work together). Use this if you're building a text input library that manages the contentEditable content manually.
172
+
suppressHydrationWarning: A boolean. If you use server rendering, normally there is a warning when the server and the client render different content. In some rare cases (like timestamps), it is very hard or impossible to guarantee an exact match. If you set suppressHydrationWarning to true, React will not warn you about mismatches in the attributes and the content of that element. It only works one level deep, and is intended to be used as an escape hatch. Don't overuse it. Read more about suppressing hydration errors.
173
+
style: An object with CSS styles, for example { fontWeight: 'bold', margin: 20 }. Similarly to the DOM style property, the CSS property names need to be written as camelCase, for example fontWeight instead of font-weight. You can pass strings or numbers as values. If you pass a number, like width: 100, React will automatically append px (“pixels”) to the value unless it's a unitless property. We recommend using style only for dynamic styles where you don't know the style values ahead of time. In other cases, applying plain CSS classes with className is more efficient. Read more about applying CSS with className and styles.
174
+
"""
173
175
174
176
STANDARD_PROPS=r"""
175
177
accessKey: A string. Specifies a keyboard shortcut for the element. Not generally recommended.
176
178
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.
177
179
autoCapitalize: A string. Specifies whether and how the user input should be capitalized.
178
-
className: A string. Specifies the element’s CSS class name. Read more about applying CSS styles.
180
+
className: A string. Specifies the element's CSS class name. Read more about applying CSS styles.
179
181
contentEditable: A boolean. If true, 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 with contentEditable={true} because React will not be able to update its content after user edits.
180
182
data-*: Data attributes let you attach some string data to the element, for example data-fruit="banana". In React, they are not commonly used because you would usually read data from props or state instead.
181
183
dir: Either 'ltr' or 'rtl'. Specifies the text direction of the element.
onCancelCapture: A version of onCancel that fires in the capture phase. capture-phase-events)
301
303
onClose: An Event handler function. Fires when a dialog has been closed.
302
304
onCloseCapture: A version of onClose that fires in the capture phase.
303
-
"""# noqa: E501
305
+
"""
304
306
305
307
DETAILS_PROPS=r"""
306
308
onToggle: An Event handler function. Fires when the user toggles the details.
307
309
onToggleCapture: A version of onToggle that fires in the capture phase. capture-phase-events)
308
-
"""# noqa: E501
310
+
"""
309
311
310
312
IMG_IFRAME_OBJECT_EMBED_LINK_IMAGE_PROPS=r"""
311
313
onLoad: An Event handler function. Fires when the resource has loaded.
312
314
onLoadCapture: A version of onLoad that fires in the capture phase.
313
315
onError: An Event handler function. Fires when the resource could not be loaded.
314
316
onErrorCapture: A version of onError that fires in the capture phase.
315
-
"""# noqa: E501
317
+
"""
316
318
317
319
AUDIO_VIDEO_PROPS=r"""
318
320
onAbort: An Event handler function. Fires when the resource has not fully loaded, but not due to an error.
319
321
onAbortCapture: A version of onAbort that fires in the capture phase.
320
-
onCanPlay: An Event handler function. Fires when there’s enough data to start playing, but not enough to play to the end without buffering.
322
+
onCanPlay: An Event handler function. Fires when there's enough data to start playing, but not enough to play to the end without buffering.
321
323
onCanPlayCapture: A version of onCanPlay that fires in the capture phase.
322
-
onCanPlayThrough: An Event handler function. Fires when there’s enough data that it’s likely possible to start playing without buffering until the end.
324
+
onCanPlayThrough: An Event handler function. Fires when there's enough data that it's likely possible to start playing without buffering until the end.
323
325
onCanPlayThroughCapture: A version of onCanPlayThrough that fires in the capture phase.
324
326
onDurationChange: An Event handler function. Fires when the media duration has updated.
325
327
onDurationChangeCapture: A version of onDurationChange that fires in the capture phase.
326
328
onEmptied: An Event handler function. Fires when the media has become empty.
327
329
onEmptiedCapture: A version of onEmptied that fires in the capture phase.
328
330
onEncrypted: An Event handler function. Fires when the browser encounters encrypted media.
329
331
onEncryptedCapture: A version of onEncrypted that fires in the capture phase.
330
-
onEnded: An Event handler function. Fires when the playback stops because there’s nothing left to play.
332
+
onEnded: An Event handler function. Fires when the playback stops because there's nothing left to play.
331
333
onEndedCapture: A version of onEnded that fires in the capture phase.
332
334
onError: An Event handler function. Fires when the resource could not be loaded.
333
335
onErrorCapture: A version of onError that fires in the capture phase.
min: A number. Specifies the minimum value of numerical and datetime inputs.
392
394
minLength: A number. Specifies the minimum length of text and other inputs.
393
395
multiple: A boolean. Specifies whether multiple values are allowed for <type="file" and type="email".
394
-
name: A string. Specifies the name for this input that’s submitted with the form.
395
-
onChange: An Event handler function. Required for controlled inputs. Fires immediately when the input’s value is changed by the user (for example, it fires on every keystroke). Behaves like the browser input event.
396
+
name: A string. Specifies the name for this input that's submitted with the form.
397
+
onChange: An Event handler function. Required for controlled inputs. Fires immediately when the input's value is changed by the user (for example, it fires on every keystroke). Behaves like the browser input event.
396
398
onChangeCapture: A version of onChange that fires in the capture phase.
397
399
onInput: An Event handler function. Fires immediately when the value is changed by the user. For historical reasons, in React it is idiomatic to use onChange instead which works similarly.
398
400
onInputCapture: A version of onInput that fires in the capture phase.
step: A positive number or an 'any' string. Specifies the distance between valid values.
410
412
type: A string. One of the input types.
411
413
width: A string. Specifies the image width for a type="image" input.
412
-
"""# noqa: E501
414
+
"""
413
415
414
416
SELECT_PROPS=r"""
415
417
value: A string (or an array of strings for multiple={true}). Controls which option is selected. Every value string match the value of some <option> nested inside the <select>.
autoFocus: A boolean. If true, React will focus the element on mount.
419
421
children: <select> accepts <option>, <optgroup>, and <datalist> components as children. You can also pass your own components as long as they eventually render one of the allowed components. If you pass your own components that eventually render <option> tags, each <option> you render must have a value.
420
422
disabled: A boolean. If true, the select box will not be interactive and will appear dimmed.
421
-
form: A string. Specifies the id of the <form> this select box belongs to. If omitted, it’s the closest parent form.
423
+
form: A string. Specifies the id of the <form> this select box belongs to. If omitted, it's the closest parent form.
422
424
multiple: A boolean. If true, the browser allows multiple selection.
423
-
name: A string. Specifies the name for this select box that’s submitted with the form.
425
+
name: A string. Specifies the name for this select box that's submitted with the form.
424
426
onChange: An Event handler function. Required for controlled select boxes. Fires immediately when the user picks a different option. Behaves like the browser input event.
425
427
onChangeCapture: A version of onChange that fires in the capture phase.
426
428
onInput: An Event handler function. Fires immediately when the value is changed by the user. For historical reasons, in React it is idiomatic to use onChange instead which works similarly.
onInvalidCapture: A version of onInvalid that fires in the capture phase.
430
432
required: A boolean. If true, the value must be provided for the form to submit.
431
433
size: A number. For multiple={true} selects, specifies the preferred number of initially visible items.
432
-
"""# noqa: E501
434
+
"""
433
435
434
436
TEXTAREA_PROPS=r"""
435
437
autoComplete: Either 'on' or 'off'. Specifies the autocomplete behavior.
436
438
autoFocus: A boolean. If true, React will focus the element on mount.
437
439
children: <textarea> does not accept children. To set the initial value, use defaultValue.
438
440
cols: A number. Specifies the default width in average character widths. Defaults to 20.
439
441
disabled: A boolean. If true, the input will not be interactive and will appear dimmed.
440
-
form: A string. Specifies the id of the <form> this input belongs to. If omitted, it’s the closest parent form.
442
+
form: A string. Specifies the id of the <form> this input belongs to. If omitted, it's the closest parent form.
441
443
maxLength: A number. Specifies the maximum length of text.
442
444
minLength: A number. Specifies the minimum length of text.
443
-
name: A string. Specifies the name for this input that’s submitted with the form.
444
-
onChange: An Event handler function. Required for controlled text areas. Fires immediately when the input’s value is changed by the user (for example, it fires on every keystroke). Behaves like the browser input event.
445
+
name: A string. Specifies the name for this input that's submitted with the form.
446
+
onChange: An Event handler function. Required for controlled text areas. Fires immediately when the input's value is changed by the user (for example, it fires on every keystroke). Behaves like the browser input event.
445
447
onChangeCapture: A version of onChange that fires in the capture phase.
446
448
onInput: An Event handler function. Fires immediately when the value is changed by the user. For historical reasons, in React it is idiomatic to use onChange instead which works similarly.
447
449
onInputCapture: A version of onInput that fires in the capture phase.
hrefLang: a string. The language of the linked resource.
472
474
integrity: a string. A cryptographic hash of the resource, to verify its authenticity.
473
475
type: a string. The MIME type of the linked resource.
474
-
"""# noqa: E501
476
+
"""
475
477
476
478
META_PROPS=r"""
477
479
name: a string. Specifies the kind of metadata to be attached to the document.
478
480
charset: a string. Specifies the character set used by the document. The only valid value is "utf-8".
479
481
httpEquiv: a string. Specifies a directive for processing the document.
480
482
itemProp: a string. Specifies metadata about a particular item within the document rather than the document as a whole.
481
483
content: a string. Specifies the metadata to be attached when used with the name or itemProp props or the behavior of the directive when used with the httpEquiv prop.
482
-
"""# noqa: E501
484
+
"""
483
485
484
486
SCRIPT_PROPS=r"""
485
487
async: a boolean. Allows the browser to defer execution of the script until the rest of the document has been processed — the preferred behavior for performance.
0 commit comments