Arihant jain

Image Preview

Buttons 7

About

A clickable image thumbnail that opens a full-size lightbox preview in a modal overlay with a close button.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Image Preview to your project and fits it to your theme.

Code

How Image Preview is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import React from "react";
import ImagePreview from "@/components/ui/image-preview";

export default function Default() {
  return (
    <div className="flex min-h-[400px] w-full items-center justify-center bg-background p-8">
      <ImagePreview
        src="https://cdn.21st.dev/assets/mirror/42/42258075158c2affc9fc985497dadef4d41d5d04d89199f0f62f5eec571c1667.jpg"
        alt="Mountain landscape"
        width={400}
        height={400}
      />
    </div>
  );
}

Dependencies

More by Arihant jain

View all
  • Footer section

    Footer section

    2K
  • Multistep Form

    Multistep Form

    750
  • Animated Drawer

    Animated Drawer

    701
  • Status Badge

    Status Badge

    589
  • Stacked Circular Footer

    Stacked Circular Footer

    455
  • Input Modal

    Input Modal

    368
  • Profile Dropdown

    Profile Dropdown

    215
  • Large Name Footer

    Large Name Footer

    204

More in Buttons

View all
  • Texture Button

    Texture Button

    106
  • Notification Button

    Notification Button

    115
  • Button

    Button

    1
  • HeroUI Button Group

    HeroUI Button Group

  • Button

    Button

    12
  • Base Button

    Base Button

    1
  • App Store Button

    App Store Button

    483
  • Split Button

    Split Button

    37