github chakra-ui/panda @pandacss/generator@1.11.2

latest releases: @pandacss/preset-panda@1.11.2, @pandacss/studio@1.11.2, @pandacss/astro-plugin-studio@1.11.2...
6 hours ago

Patch Changes

  • c0511b8: Fix forwardProps being ignored by withProvider in createStyleContext.

    Previously, withProvider split out variant props before handing them to the wrapped component, so any variant prop
    listed in forwardProps never reached the component (it was silently dropped). Now variant props named in
    forwardProps still 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

Don't miss a new panda release

NewReleases is sending notifications on new releases.