Filter Sort

Filter Sort: Native select-style box — dropdown is flush below the trigger with matching width and a left-border active state. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Filter Sort

npx motion-ui-skill add filter-sort

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

Dependencies

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

Source files

Filter Sort

Native select-style box — dropdown is flush below the trigger with matching width and a left-border active state.

Install

npx motion-ui-skill add filter-sort

Dependencies

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

Usage

"use client";

import { FilterSortDropdown } from "@/components/dropdowns/filter-sort-dropdown";

export function FilterSortDropdownDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <FilterSortDropdown />
    </div>
  );
}

API Reference

FilterSortDropdown

Prop Type Default Required Description
className string — No Additional CSS classes

Browse this category