Back to UI Components
Animated

Floating Disclosure

A small expanding menu that resizes smoothly, reveals items with a springy motion, and keeps a floating close button for dismissing it.

Floating Disclosure is a real, MIT-licensed React + Tailwind animated component from the open-source Watermelon UI library, in its popover set. Run the install command above with the shadcn CLI and it drops the component's actual source straight into your project.

It depends on motion/react, tailwindcss, so make sure those are installed too.

The code you install is the component's own source — once it's in your repo, it's yours to restyle.

CategoryAnimated
LibraryWatermelon UI
SubcategoryPopover
Dependenciesmotion/react, tailwindcss
npx shadcn@latest add https://registry.watermelon.sh/r/floating-disclosure.json

How to use it

  1. Run the install command above — the shadcn CLI drops the real component files into your project.
  2. Install the dependencies listed below it, if any.
  3. Import the component and restyle it with your own Tailwind tokens.
Compiled and written by VintuxAI from public sources.
← Back to UI Components