Skip to content

Commit

Permalink
Tweak shouldForwardProp example (#2606)
Browse files Browse the repository at this point in the history
  • Loading branch information
minimabot committed Dec 25, 2021
1 parent 2790dc9 commit d1577af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/styled.mdx
Expand Up @@ -170,7 +170,7 @@ const H1 = styled('h1', {
shouldForwardProp: prop =>
isPropValid(prop) && prop !== 'color'
})(props => ({
color: 'hotpink'
color: props.color
}))

render(<H1 color="lightgreen">This is lightgreen.</H1>)
Expand Down

0 comments on commit d1577af

Please sign in to comment.