thumbtack/thumbprint

<Image> does not support the `style` prop in TypeScript

Closed this issue · 3 comments

dcapo commented

There are examples in the Thumbprint docs for the Image component that use the style prop to set the image width.

Image__React____Thumbprint

Currently, a TS error occurs if you try to add such a style prop to the <Image> component:

Fullscreen_7_10_23__1_27_PM
egoens commented

@danoc any thoughts on this? We use the style attribute in the layout.tsx file I do not see the TS error locally. I also don't see the issue in the frontend repo when making changes to existing Image imports.

dcapo commented

The Image import in layout.tsx is for next/image, not the thumbprint <Image>. I can't find any usage of the thumbprint <Image> in a tsx file in the frontend repo (other than the one I just added in review-item-photos.tsx).

danoc commented

Thanks for the report. I made a fix for it in #944.