DebouncedInput

An input that debounces the input value.

Open in

Installation

pnpm dlx shadcn@latest add https://mhl5.vercel.app/r/DebouncedInput.json

Usage

import DebouncedInput from "@/components/ui/DebouncedInput";

<DebouncedInput
  delay={500}
  initialValue={value}
  onDebouncedChange={(value) => console.log(value)}
/>