Select Field Input
Select Field Input: Custom listbox select with styled dropdown, keyboard navigation, click-outside close, and hidden input for native form posts. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Select Field Input
npx motion-ui-skill add select-field-inputComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactreacttailwind-merge
Source files
Select Field Input
Custom listbox select with styled dropdown, keyboard navigation, click-outside close, and hidden input for native form posts.
Install
npx motion-ui-skill add select-field-input
Dependencies
clsxlucide-reactreacttailwind-merge
Usage
"use client";
import { SelectFieldInput } from "@/components/inputs/select-field-input";
export function SelectFieldInputDemo() {
return (
<div className="flex items-center justify-center p-6">
<SelectFieldInput />
</div>
);
}
API Reference
SelectFieldInput
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |