Skip to content

Commit

Permalink
fix(#4208): Form includes label prop inherited from SpectrumLabelable…
Browse files Browse the repository at this point in the history
…Props that goes unused (#4209)

Remove label from Form props
  • Loading branch information
majornista authored Mar 17, 2023
1 parent e044ef7 commit e849aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@react-types/form/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import {AriaLabelingProps, DOMProps, SpectrumLabelableProps, StyleProps, ValidationState} from '@react-types/shared';
import {FormEventHandler, ReactElement} from 'react';

export interface SpectrumFormProps extends DOMProps, AriaLabelingProps, StyleProps, Omit<SpectrumLabelableProps, 'contextualHelp'> {
export interface SpectrumFormProps extends DOMProps, AriaLabelingProps, StyleProps, Omit<SpectrumLabelableProps, 'contextualHelp' | 'label'> {
/** The contents of the Form. */
children: ReactElement<SpectrumLabelableProps> | ReactElement<SpectrumLabelableProps>[],
/** Whether the Form elements are displayed with their quiet style. */
Expand Down

1 comment on commit e849aef

@rspbot
Copy link

@rspbot rspbot commented on e849aef Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.