You can add the generic type parameter to the returned function of styled like this:
type InputProps = {
width: number
}
const InputField = styled('input')<InputProps>(({ width }) => ({
width: width
}));
You can add the generic type parameter to the returned function of styled like this:
type InputProps = {
width: number
}
const InputField = styled('input')<InputProps>(({ width }) => ({
width: width
}));