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.
asChild
1 parent 28d180b commit 92b7ed7Copy full SHA for 92b7ed7
packages/select/src/select.web.tsx
@@ -232,7 +232,12 @@ const Item = React.forwardRef<ItemRef, ItemProps>(
232
return (
233
<ItemContext.Provider value={{ itemValue: value, label: label }}>
234
<Slot.Pressable ref={ref} {...props}>
235
- <Select.Item textValue={label} value={value} disabled={props.disabled ?? undefined}>
+ <Select.Item
236
+ asChild={asChild}
237
+ textValue={label}
238
+ value={value}
239
+ disabled={props.disabled ?? undefined}
240
+ >
241
<>{children as React.ReactNode}</>
242
</Select.Item>
243
</Slot.Pressable>
0 commit comments