Dev Design Library

Lightbox

An accessible image preview that expands from its thumbnail and returns to the same spatial origin when dismissed.

Lightbox preview
Library
Sona UI
Framework
React
Type
ui
License
MIT
Dependencies
@base-ui/react, motion
Install
npx shadcn@latest add @sona-ui/lightbox
Files
  • src/registry/sonaui/lightbox/lightbox.tsx
  • src/registry/sonaui/sona-utils/sona-utils.ts
  • src/lib/sona-utils.ts
Source
https://github.com/Dinil-Thilakarathne/sona-ui

Categories

More from Sona UI