OriginDropdown

OriginDropdown: A dropdown with origin-aware expansion — the menu materializes from the chosen side with a slight scale and an inward translation, so its perceived origin is the trigger edge closest to the menu. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install OriginDropdown

npx motion-ui-skill add origin-dropdown

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Source files

OriginDropdown

A dropdown with origin-aware expansion — the menu materializes from the chosen side with a slight scale and an inward translation, so its perceived origin is the trigger edge closest to the menu.

Install

npx motion-ui-skill add origin-dropdown

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { OriginDropdown as OriginDropdown } from "@/components/craft/origin-dropdown";

export function Example() {
  return (
    <div className="p-6">
      <OriginDropdown />
    </div>
  );
}

Browse this category