🐼 Panda v0.15.4 #1454
anubra266
announced in
Announcements
🐼 Panda v0.15.4
#1454
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To upgrade to v0.15.4:
What's Changed
Fixed
styledfactory fn for Qwik, Solid and Vue.when used with runtime conditions
Given a component like this:
the
pyvalue was incorrectly extracted like this:which would then generate invalid CSS like:
it's now correctly transformed back to an array:
{ "py": { - "1": 2, + [ + undefined, + 2, + ] }, }, { "py": { - "1": 3, + [ + undefined, + 3, + ] }, },which will generate the correct CSS
Added
Improved styled factory by adding a 3rd (optional) argument:
dataAttrto true will add adata-recipe="{recipeName}"attribute to the element with the recipe name. Thisis useful for testing and debugging.
defaultPropsallows you to skip writing wrapper components just to set a few props. It also allows you to locallyoverride the default variants or base styles of a recipe.
shouldForwardPropallows you to customize which props are forwarded to the underlying element. By default, all propsexcept recipe variants and style props are forwarded.
Beta Was this translation helpful? Give feedback.
All reactions