From e27a8ee8e8704906c696017af40400a5047ba18f Mon Sep 17 00:00:00 2001 From: fabb <153960+fabb@users.noreply.github.com> Date: Sat, 14 Oct 2023 04:57:15 +0200 Subject: [PATCH] fixed example for styled components 6 types (#943) --- sections/api/primary/styled-component.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sections/api/primary/styled-component.mdx b/sections/api/primary/styled-component.mdx index f22fed6e..4c21911f 100644 --- a/sections/api/primary/styled-component.mdx +++ b/sections/api/primary/styled-component.mdx @@ -47,10 +47,10 @@ Returns another `StyledComponent`. ```react // import styled from 'styled-components' -const Input = styled.input.attrs(props => ({ +const Input = styled.input.attrs<{ $padding?: string; $small?: boolean; }>(props => ({ type: 'text', size: props.$small ? 5 : undefined, -}))<{ $padding?: string; $small?: boolean; }>` +}))` border-radius: 3px; border: 1px solid #BF4F74; display: block;