Skip to content

Change hover message for Image tag #29046

Answered by suyundukov
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, @redfoxtsyamazakishinji. You can pass preview property. Like this:

<Image
  width={200}
  src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
  preview={{
    mask: "Show picture"
  }}
/>

More info: https://ant.design/components/image/#API

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant