Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

765 B
Raw Blame
'use client';

import { Search } from 'lucide-react';
import { Input } from '@/components/ui/input';

// The search box above a list that is paged on the server: typing here refetches a
// page rather than filtering what is on screen.
export default function SearchInput({
  value,
  onChange,
  placeholder,
  className,
}: {
  value: string;
  onChange: (value: string) => void;
  placeholder: string;
  className: string;
}) {
  return (
    <div className={`relative ${className}`}>
      <Search className="absolute start-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" />
      <Input
        value={value}
        onChange={(e) => onChange(e.target.value)}
        placeholder={placeholder}
        className="h-9 ps-8"
      />
    </div>
  );
}