Skip to content

Commit

Permalink
fix a typo (#2837)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaleSeo committed Jul 26, 2022
1 parent b8d45d4 commit 1c32b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/emotion-11.mdx
Expand Up @@ -69,7 +69,7 @@ For the classic runtime this has been implemented using technique described [her

For the automatic runtime this has been implemented by exporting `JSX` namespace from the appropriate entries but this is only supported in **TypeScript 4.1 or higher**.

However, if you are stuck with older version of TypeScript or using the classic runtime implicitly by using our `@emotion/babel-preset-css-prop` then it's not possible to leverage leverage `css` prop support being added conditionally based on a type of rendered component. For those cases we have added a special file that can be imported once to add support for the `css` prop globally, for all components. Use it like this:
However, if you are stuck with older version of TypeScript or using the classic runtime implicitly by using our `@emotion/babel-preset-css-prop` then it's not possible to leverage `css` prop support being added conditionally based on a type of rendered component. For those cases we have added a special file that can be imported once to add support for the `css` prop globally, for all components. Use it like this:

```ts
/// <reference types="@emotion/react/types/css-prop" />
Expand Down

0 comments on commit 1c32b04

Please sign in to comment.