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 3eedd7b commit 034e196Copy full SHA for 034e196
src/components/Select.tsx
@@ -93,7 +93,7 @@ export interface SelectProps<T extends SelectItemNode> {
93
value?: string | null
94
zIndex?: number
95
onChange?: (value: T) => void
96
- render?: (value: T) => ReactNode
+ render?: (value: T, index?: number) => ReactNode
97
ListItemProps?: Partial<PP<'div', ListItemProps>>
98
}
99
@@ -377,7 +377,7 @@ export const Select = forwardRefWithGenerics(
377
},
378
})}
379
>
380
- {render(item)}
+ {render(item, i)}
381
</ListItem>
382
)
383
0 commit comments