diff --git a/packages/components/src/spectrum/picker/Picker.tsx b/packages/components/src/spectrum/picker/Picker.tsx index 30702010a3..b816018731 100644 --- a/packages/components/src/spectrum/picker/Picker.tsx +++ b/packages/components/src/spectrum/picker/Picker.tsx @@ -17,7 +17,10 @@ import { PickerItemContent } from './PickerItemContent'; import { Item, Section } from '../shared'; export type PickerProps = { - children: PickerItemOrSection | PickerItemOrSection[]; + children: + | PickerItemOrSection + | PickerItemOrSection[] + | NormalizedPickerItem[]; /** Can be set to true or a TooltipOptions to enable item tooltips */ tooltip?: boolean | TooltipOptions; /** The currently selected key in the collection (controlled). */ @@ -99,31 +102,38 @@ export function Picker({ ); const renderItem = useCallback( - ({ key, item }: NormalizedPickerItem) => ( - // The `textValue` prop gets used to provide the content of `