Panda and Ark UI component collections type inference #3383
-
|
Hi, I'm trying to use Ark UI Select component with PandaCSS's styled context. Would like some advice on this please. I'm facing TS errors where the typing of Select's collection type generic is not inferred by the styled context helper. In the example below, the
Minimal reproducible repo here I'm not quite sure if this goes here or Ark-UI but I suspect it has something to styled context so this feels like the best place to ask. Before I open an issue, I thought of asking first, in case I missed out something somewhere. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This generally goes into Ark UI, but Ark UI exposes a Learn from Park UI's code here: |
Beta Was this translation helpful? Give feedback.

This generally goes into Ark UI, but Ark UI exposes a
Select.RootComponentcomponent type you can use to make sure you preserve the generic type.Learn from Park UI's code here:
https://github.com/cschroeter/park-ui/blob/next/components/react/src/components/ui/select.tsx