Patch Changes
-
c0511b8: Fix
forwardPropsbeing ignored bywithProviderincreateStyleContext.Previously,
withProvidersplit out variant props before handing them to the wrapped component, so any variant prop
listed inforwardPropsnever reached the component (it was silently dropped). Now variant props named in
forwardPropsstill drive the slot styles and are forwarded to the component.const { withProvider } = createStyleContext(tabs) function TabsRoot({ orientation, ...rest }) { // `orientation` is now defined here instead of `undefined` return <div aria-orientation={orientation} {...rest} /> } export const Tabs = withProvider(TabsRoot, 'root', { forwardProps: ['orientation'] })
This is fixed across the React, Preact, Vue, and Solid outputs. The Solid implementation forwards the props through
getters so reactivity is preserved.- @pandacss/types@1.11.2
- @pandacss/core@1.11.2
- @pandacss/is-valid-prop@1.11.2
- @pandacss/logger@1.11.2
- @pandacss/shared@1.11.2
- @pandacss/token-dictionary@1.11.2