Pace UI

Motion Combobox

Component 1

About

A searchable dropdown input that filters a list of selectable items as you type, with an animated sliding highlight on hover/focus, spring-animated popup, and removable chip transitions for multi-select.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Motion Combobox to your project and fits it to your theme.

Code

How Motion Combobox is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import * as React from "react";

import {
  Combobox,
  ComboboxContent,
  ComboboxEmpty,
  ComboboxInput,
  ComboboxItem,
  ComboboxList,
} from "@/components/ui/motion-combobox";

interface Framework {
  value: string;
  label: string;
}

const frameworks: Framework[] = [
  { value: "next", label: "Next.js" },
  { value: "react", label: "React" },
  { value: "vue", label: "Vue" },
  { value: "svelte", label: "Svelte" },
  { value: "solid", label: "SolidJS" },
  { value: "astro", label: "Astro" },
];

export default function ComboboxDemo() {
  return (
    <div className="flex w-full items-center justify-center p-10">
      <Combobox
        items={frameworks}
        itemToStringLabel={(item: Framework) => item.label}
      >
        <ComboboxInput placeholder="Select framework..." className="w-56" />
        <ComboboxContent>
          <ComboboxEmpty>No framework found.</ComboboxEmpty>
          <ComboboxList>
            {(item: Framework) => (
              <ComboboxItem key={item.value} value={item}>
                {item.label}
              </ComboboxItem>
            )}
          </ComboboxList>
        </ComboboxContent>
      </Combobox>
    </div>
  );
}

Dependencies

More by Pace UI

View all
  • Dot Loader

    Dot Loader

    965
  • Flip Reveal

    Flip Reveal

    669
  • Dot Flow

    Dot Flow

    270
  • Draw Line Text

    Draw Line Text

    120
  • Liquid Glass

    Liquid Glass

    63
  • Liquid Cursor

    Liquid Cursor

    51
  • Layered Stack

    Layered Stack

    47
  • Calendar Heatmap Chart

    Calendar Heatmap Chart

    16