Skip to content

Commit

Permalink
fixed example for styled components 6 types (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabb committed Oct 14, 2023
1 parent e57a5aa commit e27a8ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sections/api/primary/styled-component.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e27a8ee

Please sign in to comment.