How to use the @emotion/core.jsx.apply function in @emotion/core

To help you get started, we’ve selected a few @emotion/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github styled-system / styled-system / packages / jsx / src / index.js View on Github external
export const jsx = (type, props, ...children) => {
  return emotion.apply(undefined, [
    type,
    props
      ? {
          ...props,
          css: css(props.css),
        }
      : null,
    ...children,
  ])
}
github system-ui / theme-ui / packages / core / src / index.js View on Github external
export const jsx = (type, props, ...children) =>
  emotion.apply(undefined, [type, parseProps(props), ...children])
github system-ui / theme-ui / packages / theme-ui / src / jsx.js View on Github external
export const jsx = (type, props, ...children) =>
  emotion.apply(undefined, [type, parseProps(props), ...children])