From 011944510d673e307cf2b8a8da4b6e496fec8483 Mon Sep 17 00:00:00 2001 From: official_dulin Date: Sat, 14 Oct 2023 11:09:04 +0800 Subject: [PATCH] Update passed-props.mdx (#935) * Update passed-props.mdx Fixed the prop name, `inputColor` should be `$inputColor` * Update sections/basics/passed-props.mdx --------- Co-authored-by: Evan Jacobs <570070+probablyup@users.noreply.github.com> --- sections/basics/passed-props.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sections/basics/passed-props.mdx b/sections/basics/passed-props.mdx index 09e734b0..5eb5293c 100644 --- a/sections/basics/passed-props.mdx +++ b/sections/basics/passed-props.mdx @@ -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.