Panda with ark-ui and slots #3263
-
Is there a detailed guide on how to set up a component theme with slot, where the root element does not accept a className property? Such as the Menu component. I'd like to use the defineParts approach, to only have the styles given once, but that seems to fall apart with this component. I was also looking at the slot recipes part of the docs here, but there also the Typescript example link is broken. I did find a similar one in the park-ui repo, but there seems to be some type mismatch to the current version of Panda:
This error looks to be on the props |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ideally, you want to use The menu root is only a provider and doesn't expose a node, making |
Beta Was this translation helpful? Give feedback.
Ideally, you want to use
sva
ordefineSlotRecipe
. UsingdefineParts
might cause issues if the<Menu.Content>
is portalled.The menu root is only a provider and doesn't expose a node, making
defineParts
not the best choice.