Morph Popover - React Component | Kokonut UI
Morph Popover
A button that grows into the form it opens, with its label sliding up to become the title, then shrinks into a confirmation.
Installation
Morph Popover is a free, open-source React component in the Kokonut UI Buttons collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/morph-popover.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/morph-popover
Or add it by hand: install its packages, then copy the source from above into components/kokonutui/morph-popover.tsx.
npm install motion
Usage
import MorphPopover from "@/components/kokonutui/morph-popover";
export default function Example() {
return <MorphPopover />;
}
Props
label:stringDefault `