shadcn.io is not affiliated with official shadcn/ui
Hover Card EXIF Gallery Block for React
Six drawn frames in cells of their own, each a link with a hover card of camera, lens, aperture, shutter speed and ISO that opens on hover and on keyboard focus, and prints the same settings in the caption on a touch screen.
Installation
Overview
A hover-card gallery for React with Base UI. A centred header sits over six drawn frames in cells of their own (three across, two on a phone), each with a hairline frame that overshoots its corners. Each frame is a link with a hover card: hover it, or Tab to it, and the card lists the camera, lens, aperture, shutter speed and ISO it was shot with, as a definition list. A touch screen has no hover, so the card stays shut and the same settings are printed in the caption instead; a screen reader always gets them as text. The frames are drawn in the theme's greys, never photographed. It's built from Guides and Hover Card. For photo notebooks, camera reviews and any picture whose details are secondary.
FAQ
Does the card open for keyboard users?
What happens on a touch screen?
Under (hover: none) the card is hidden with CSS and the caption shows one line of settings ("35 mm · f/2.8 · 1/250 s · ISO 400"). Tapping a frame follows its link as usual; it never opens a card that can't be dismissed.
Are these real settings?
They are example data for a fictional camera, typed in each entry. Replace the entries with your own EXIF and the card and the caption follow.
Related
- Pro
Hover Caption Masonry Gallery
Masonry and mosaicA masonry wall of nine drawn interiors in three columns, each in its own framed cell, with a caption and a Save toggle that rise on hover and on focus and a live count of saved pictures.
- Pro
Numerals Over Maps Gallery
Hairline gridsSix drawn route maps on shared hairlines, each with its distance laid over the foot in large figures on a solid, masked panel, and a Show control that rolls every figure between this year and all time.
- Pro
Ratio Switcher Gallery
Hairline gridsSix drawn pictures in cells of their own, with a Ratio control (1:1, 4:3, 16:9, 3:2, 9:16, 21:9) that crops every picture to it while keeping each subject in frame, and a chip on every picture naming the ratio.
- Pro
Lightbox Gallery
Stage and thumbnailsNine pictures of a photography studio's year on shared hairlines, a featured frame and a caption under each, where every frame opens one viewer dialog with the whole picture, its credit, Previous and Next, a counter, arrow keys and a swipe.
- Pro
Paginated Minimal Grid Gallery
Hairline gridsA quiet grid of twenty-four drawn concrete-architecture plates, eight to a page on shared hairlines, with a title and year that appear on hover and focus and the catalog pagination in a band that ends the block.
- Pro
Hover Card Mosaic Team
Grids and wallsThe planners of an interior-planning studio as a mosaic of mixed spans that shares its hairlines: a two-by-two lead cell, two wide cells, three small ones and a +12 cell, each person a link with a hover card that opens on hover and on focus.