Minor Changes
-
f778d3e: You can now set and override
defaultValues
in pattern configurations.Here's an example of how to define a new
hstack
pattern with a defaultgap
value of40px
:defineConfig({ patterns: { hstack: { properties: { justify: { type: 'property', value: 'justifyContent' }, gap: { type: 'property', value: 'gap' }, }, // you can also use a token like '10' defaultValues: { gap: '40px' }, transform(props) { const { justify, gap, ...rest } = props return { display: 'flex', alignItems: 'center', justifyContent: justify, gap, ...rest, } }, }, }, })
Patch Changes
- 2e32794: Set
display: none
for hidden elements inreset
css - Updated dependencies [5fcdeb7]
- Updated dependencies [7c7340e]
- Updated dependencies [f778d3e]
- Updated dependencies [250b4d1]
- Updated dependencies [a2fb5cc]
- @pandacss/types@0.29.0
- @pandacss/core@0.29.0
- @pandacss/token-dictionary@0.29.0
- @pandacss/is-valid-prop@0.29.0
- @pandacss/logger@0.29.0
- @pandacss/shared@0.29.0