Image Metadata Preview

Hover to reveal EXIF and metadata for images.

Open in v0~1.2 kB

Last updated: March 7, 2026

Mountain landscape

Installation

npx smoothui-cli add image-metadata-preview

Features

  • On-hover metadata panel
  • Smooth entrance animations
  • Custom fields and layout
  • Works with static or dynamic data

Accessibility

ARIA Attributes

AttributeElementPurpose
aria-labelShare buttonProvides accessible name "Share"
aria-labelOpen buttonProvides accessible name "Open Metadata Preview"
aria-labelClose buttonProvides accessible name "Close metadata preview"
aria-hidden="true"Icon SVGs (Share, ChevronUp, CircleX)Hides decorative icons from screen readers

Screen Reader

  • All interactive buttons have descriptive aria-label attributes.
  • The metadata table uses semantic <table>, <tbody>, <tr>, and <td> elements for structured data.
  • Buttons have visible focus rings via focus-visible:ring-2 and minimum touch target sizes (min-h-[44px], min-w-[44px]).

Reduced Motion

This component respects the prefers-reduced-motion media query via useReducedMotion from Motion. When reduced motion is preferred, the image lift animation, metadata panel entrance blur/spring, and the open/close button blur transitions are all disabled.

Props

On this page

Created by

Powered by

motion.dev
lucide.dev
usehooks.com