-
Hello there. I'm trying to group some parts of select primitives in my custom components and use it. https://codesandbox.io/s/react-tailwind-starter-forked-cwmw6p?file=/src/Select.js:1974-2168 I created 2 versions of Select in files: Select.js and MySelect.js. Select.js component works fine because i use code from example, but MySelect works incorrect. How can i rewrite and components to make it work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Lir-kulikov, You forgot to pass Additionally, they have an example to create your own API. |
Beta Was this translation helpful? Give feedback.
Hi @Lir-kulikov,
You forgot to pass
value
prop toSelectPrimitive.Item
inMySelectItem
.Additionally, they have an example to create your own API.