Dev Design Library

Floating Viewer

An in-page media surface that automatically or manually detaches, stays within viewport bounds, snaps to a corner, and restores without remounting its content.

Floating Viewer preview
Library
Sona UI
Framework
React
Type
ui
License
MIT
Dependencies
motion
Install
npx shadcn@latest add @sona-ui/floating-viewer
Files
  • src/registry/sonaui/floating-viewer/floating-viewer.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