Skip to content

Commit

Permalink
fix(#6109): SpectrumFieldProps should return labelProps that can be s…
Browse files Browse the repository at this point in the history
…pread on a label or React-Spectrum Label (#6111)

Co-authored-by: Reid Barber <reid@reidbarber.com>
Co-authored-by: Yihui Liao <44729383+yihuiliao@users.noreply.github.com>
Co-authored-by: Daniel Lu <dl1644@gmail.com>
  • Loading branch information
4 people authored Apr 2, 2024
1 parent 94a1176 commit 0e61098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@react-types/label/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

import {Alignment, DOMProps, LabelPosition, NecessityIndicator, SpectrumFieldValidation, SpectrumHelpTextProps, StyleProps, Validation, ValidationResult} from '@react-types/shared';
import {ElementType, HTMLAttributes, ReactElement, ReactNode} from 'react';
import {ElementType, HTMLAttributes, LabelHTMLAttributes, ReactElement, ReactNode} from 'react';

export interface LabelProps {
children?: ReactNode,
Expand All @@ -34,7 +34,7 @@ export interface SpectrumFieldProps extends SpectrumLabelPropsBase, SpectrumHelp
children: ReactElement,
label?: ReactNode,
contextualHelp?: ReactNode,
labelProps?: HTMLAttributes<HTMLElement>,
labelProps?: LabelHTMLAttributes<HTMLLabelElement>,
descriptionProps?: HTMLAttributes<HTMLElement>,
errorMessageProps?: HTMLAttributes<HTMLElement>,
wrapperClassName?: string,
Expand Down

0 comments on commit 0e61098

Please sign in to comment.