Skip to content
Rebass
GitHub

Using Styled Components

If you'd prefer to use the Styled Components library instead of Emotion, you can import components from rebass/styled-components.

import React from 'react'
import { Box } from 'rebass/styled-components'
export default props =>
<Box>
Hello
</Box>
The package will still install Emotion as a dependency, but it will not be included in the module or your application bundle.
Edit this page on GitHub