how can I get type hints for extended styled-component props in vscode? I don't talk about style's props but about component's props.
When I extend my own component with styled(), type hint for props work perfectly. But when I use third-party component inside styled(), vscode don't give me any props hint.
import React from "react";
import styled from "styled-components";
import NumberFormat from "react-number-format";
const InputElement = styled(NumberFormat)`
border: 5px solid #eddcc7;
font-size: 1.5em;
max-width: 850px;
width: 100%;
text-align: center;
padding: .75em;
font-weight: 500;
line-height: 1.5;
`
const Input: React.FC = () => {
return (
// Get type hints for below extended styled component
<InputElement />
);
};
export default Input;
What I do wrong and what can I do correct?
Thanks for help 😅