Skip to content

Commit

Permalink
Update passed-props.mdx (#935)
Browse files Browse the repository at this point in the history
* Update passed-props.mdx

Fixed the prop name, `inputColor` should be `$inputColor`

* Update sections/basics/passed-props.mdx

---------

Co-authored-by: Evan Jacobs <[email protected]>
  • Loading branch information
mrdulin and quantizor authored Oct 14, 2023
1 parent 1913608 commit 0119445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sections/basics/passed-props.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ render(
);
```

Note how the `inputColor` prop is not passed to the DOM, but `type` and `defaultValue` are. That is styled-components being smart enough to filter non-standard attributes automatically for you.
Note how the `$inputColor` prop is not passed to the DOM, but `type` and `defaultValue` are? The `styled` function is smart enough to filter non-standard attributes automatically for you.

0 comments on commit 0119445

Please sign in to comment.