Skip to content

Commit

Permalink
Describe migration path for removed Themed.X as=Y pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus committed Mar 21, 2022
1 parent 0b94a2e commit 0e1c8b6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

## v0.14

- `@theme-ui/components` and other Theme UI packages no longer depend on
`@emotion/styled`.
- `theme-ui`, `@theme-ui/components` and `@theme-ui/mdx` packages no longer
depend on `@emotion/styled`.

- Previously deprecated `.withComponent` API was removed.
- Previously deprecated `Component.withComponent` API was removed.

- `as` prop was removed from Themed.X components from `@theme-ui/mdx`.

- All occurences of `<Themed.X as="element">` can be changed to
`<element sx={t => t.styles.X} />`.

## v0.13

**Moved Emotion and `@mdx-js/react` to peerDependencies to solve context
Expand Down

0 comments on commit 0e1c8b6

Please sign in to comment.