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.

- 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.tsxsrc/registry/sonaui/sona-utils/sona-utils.tssrc/lib/sona-utils.ts
- Source
- https://github.com/Dinil-Thilakarathne/sona-ui
Categories
- Media Components
- React Media Components
- Tailwind CSS Media Components
- Animated Media Components
- Mini Player Components
- React Mini Player Components
- Animated Mini Player Components
- Overlay Components
- React Overlay Components
- Tailwind CSS Overlay Components
- Animated Overlay Components
- Video Player Components