Skip to content

Can't apply sx prop #1868

Answered by hasparus
trkohler asked this question in Q&A
Jul 21, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

What JSX pragma do you have configured? We have a function called jsx you can import from theme-ui or @theme-ui/core which handles that sx prop. You need some setup (e.g. /** @jsxImportSource theme-ui */ or Babel config) to make it run.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@trkohler
Comment options

@trkohler
Comment options

@hasparus
Comment options

@trkohler
Comment options

Answer selected by hasparus
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