Image

Displays visual media with support for responsive sizing and accessibility.

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes.com/r/image.json

Examples


Preview

Preview icon

Aspect ratio


API Reference

PropTypeDefault
widthnumber, string-
heightnumber, string-
previewbooleanfalse
indicatorIconReact.ReactNode<Eye />