We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ed3d4a commit 22d52cfCopy full SHA for 22d52cf
packages/@react-aria/textfield/src/useTextField.ts
@@ -15,6 +15,7 @@ import {
15
ChangeEvent,
16
DOMFactory,
17
HTMLAttributes,
18
+ LabelHTMLAttributes,
19
ReactDOM,
20
RefObject
21
} from 'react';
@@ -88,7 +89,7 @@ export interface TextFieldAria<T extends TextFieldIntrinsicElements = DefaultEle
88
89
/** Props for the input element. */
90
inputProps: TextFieldInputProps<T>,
91
/** Props for the text field's visible label element, if any. */
- labelProps: DOMAttributes,
92
+ labelProps: DOMAttributes | LabelHTMLAttributes<HTMLLabelElement>,
93
/** Props for the text field's description element, if any. */
94
descriptionProps: DOMAttributes,
95
/** Props for the text field's error message element, if any. */
0 commit comments