Skip to content

Commit 129ab3e

Browse files
committed
export tailwind version of the image
1 parent 62b5b3a commit 129ab3e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/components/Image.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,18 @@ const DefaultNextImage = (props: ImageProps) => {
4141
}
4242

4343
/**
44-
* TODO: replace this component with import { Image } from "@chakra-ui/next-js"
45-
* once https://github.com/vercel/next.js/issues/52216 is fixed
44+
* TODO: Rename this component to `Image` once all components are using Tailwind
45+
*/
46+
export const TwImage = (props: NextImageProps) => (
47+
<DefaultNextImage {...props} />
48+
)
49+
50+
/**
51+
* DEPRECATED: Use `TWImage` instead
52+
*
53+
* TODO: Remove this component once all components are using Tailwind
54+
*
55+
* @deprecated
4656
*/
4757
export const Image: ChakraComponent<"img", NextImageProps> = chakra(
4858
DefaultNextImage,

0 commit comments

Comments
 (0)