You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/docs/src/pages/sx-prop.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ export default props => (
33
33
34
34
<Note>
35
35
36
-
Under the hood, Theme UI uses a [custom pragma comment](/jsx-pragma) that converts a theme-aware `sx` prop into a style object and passes it to the Emotion's `jsx` function.
36
+
Under the hood, Theme UI uses a [custom pragma comment](/jsx-pragma) that converts a theme-aware `sx` prop into a style object and passes it to Emotion's `jsx` function.
37
37
The `sx` prop only works in modules that have defined a custom pragma at the top of the file, which replaces the default `React.createElement` function.
38
38
This means you can control which modules in your application opt into this feature without the need for a Babel plugin or additional configuration.
39
39
This is intended as a complete replacement for the Emotion custom JSX pragma.
0 commit comments