Minor Changes
-
c08de87: ### Breaking
- Renamed the
name
property of a config recipe toclassName
. This is to ensure API consistency and express the
intent of the property more clearly.
export const buttonRecipe = defineRecipe({ - name: 'button', + className: 'button', // ... })
- Renamed the
jsx
property of a pattern tojsxName
.
const hstack = definePattern({ - jsx: 'HStack', + jsxName: 'HStack', // ... })
Feature
Update the
jsx
property to be used for advanced tracking of custom pattern components.import { Circle } from 'styled-system/jsx' const CustomCircle = ({ children, ...props }) => { return <Circle {...props}>{children}</Circle> }
To track the
CustomCircle
component, you can now use thejsx
property.import { defineConfig } from '@pandacss/dev' export default defineConfig({ patterns: { extend: { circle: { jsx: ['CustomCircle'], }, }, }, })
- Renamed the