Skip to content

Commit

Permalink
Use extend for README customization demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanjc authored Oct 6, 2017
1 parent e5a17b9 commit 08717da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,9 @@ const App = props => (
Rebass components can be completely customized using styled-components.

```jsx
import styled from 'styled-components'
import { Button } from 'rebass'

const CustomButton = styled(Button)`
const CustomButton = Button.extend`
border: 1px solid rgba(0, 0, 0, .25);
background-image: linear-gradient(transparent, rgba(0, 0, 0, .125));
box-shadow: 0 0 4px rgba(0, 0, 0, .25)
Expand Down

0 comments on commit 08717da

Please sign in to comment.