DUI
⌘K

Components / Forms

SearchInput

Search input with clear button and loading state.

Preview

1import { SearchInput } from "@/components/ui/search-input"2
3export function SearchInputDemo() {4  return (5    <SearchInput6      value=""7      onChange={() => {}}8      placeholder="Search components..."9      10    />11  )12}

loading

The loading style of this component.

1import { SearchInput } from "@/components/ui/search-input"2
3export function SearchInputDemo() {4  return (5    <SearchInput6      value=""7      onChange={() => {}}8      placeholder="Search components..."9      loading10    />11  )12}

Installation

Add the source directly to your project with the shadcn CLI.

npx shadcn@latest add qentrah/DUI/search-input

Usage

Install the component, import it from your configured UI directory, and adapt the source to your product. Open the source panel under any example to copy that exact variant.