Skip to content

Commit d1577af

Browse files
authored
Tweak shouldForwardProp example (#2606)
1 parent 2790dc9 commit d1577af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/styled.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const H1 = styled('h1', {
170170
shouldForwardProp: prop =>
171171
isPropValid(prop) && prop !== 'color'
172172
})(props => ({
173-
color: 'hotpink'
173+
color: props.color
174174
}))
175175

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

0 commit comments

Comments
 (0)