Skip to content

Commit

Permalink
fix: Exporting correct Radio prop types (#2058)
Browse files Browse the repository at this point in the history
Looks like I exported the incorrect Radio component prop types in
previous PR. There are apparently extended ones for Spectrum.


https://github.com/adobe/react-spectrum/blob/7da3d384aa0c6bdc14449c4f138e963a094a7a38/packages/%40react-types/radio/src/index.d.ts#L58-L71

#2020
  • Loading branch information
bmingles authored Jun 4, 2024
1 parent 879ab48 commit 98be05a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/components/src/spectrum/forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export {
type SpectrumTextFieldProps as TextFieldProps,
} from '@adobe/react-spectrum';

export type { RadioGroupProps, RadioProps } from '@react-types/radio';
export type {
SpectrumRadioGroupProps as RadioGroupProps,
SpectrumRadioProps as RadioProps,
} from '@react-types/radio';

// @react-types/textfield is unecessary if https://github.com/adobe/react-spectrum/pull/6090 merge
export type { SpectrumTextAreaProps as TextAreaProps } from '@react-types/textfield';

0 comments on commit 98be05a

Please sign in to comment.