Skip to content
Discussion options

You must be logged in to vote

In our migration to Panda, we would like to remove the Box and only use standard HTML.

fyi there's a <Box /> (or box()) pattern built-in the default preset

Would it be possible to pass those props to a css function to convert them to classes? Here's an example:

as long as they are statically analyzable, yes, you can use the special css prop for that
there's a isCssProperty exported from styled-system/jsx if you want to split props

Same with an sx prop that would receive styles.

rename sx to css

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@benoitdeziel
Comment options

Answer selected by benoitdeziel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants