Interactive Image Selector

Selectable image grid with animated selection states.

Open in v0~1.6 kB

Last updated: March 7, 2026

Gallery item 1
Gallery item 2
Gallery item 3
Gallery item 4
Gallery item 5
Gallery item 6

Installation

npx smoothui-cli add interactive-image-selector

Features

  • Toggle selection with keyboard and pointer
  • Animated selection ring and scales
  • Custom renderers and captions
  • Responsive grid

Accessibility

ARIA Attributes

AttributeElementPurpose
aria-labelReset buttonProvides accessible name "Reset selection"
aria-labelSelect/Cancel buttonDynamically describes current action

Screen Reader

  • Each gallery image has an alt attribute (e.g., "Gallery item 1").
  • The selection count is displayed as visible text in the action bar.
  • The Share and Delete buttons use icon-only presentation without accessible labels.

Reduced Motion

This component respects the prefers-reduced-motion media query via useReducedMotion from Motion. When reduced motion is preferred, shake and slide-in animations are disabled.

Props