Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

styled components props typescript

interface YourProps {
  invalid: boolean
}

const Input = styled.input`
  border: ${(p: YourProps) => p.invalid ? 'red' : 'blue'};
`
Source by github.com #
 
PREVIOUS NEXT
Tagged: #styled #components #props #typescript
ADD COMMENT
Topic
Name
3+8 =