Skip to content

Commit

Permalink
fixed visual syntax error for basics#attaching-additional-props (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigkho committed Oct 14, 2023
1 parent e755d06 commit 7814cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sections/basics/attaching-additional-props.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This allows each wrapper to **override** nested uses of `.attrs`, similarly to h
const Input = styled.input.attrs(props => ({
type: "text",
$size: props.$size || "1em",
})<{ $size?: string; }>`
}))<{ $size?: string; }>`
border: 2px solid #BF4F74;
margin: ${props => props.$size};
padding: ${props => props.$size};
Expand Down

0 comments on commit 7814cfd

Please sign in to comment.