interface FilterInputProps { value: string; placeholder: string; name?: string; class?: string; inputClass?: string; inputRef?: (input: HTMLInputElement) => void; onInput: (value: string) => void; } export const FilterInput = (props: FilterInputProps) => (
{ const input = event.currentTarget.querySelector("input"); if (event.target !== input) input?.focus(); }} > props.inputRef?.(input)} type="text" spellcheck={false} autocapitalize="off" autocomplete="off" name={props.name} class={ props.inputClass ?? "min-w-0 grow py-1 select-none placeholder:text-xs focus:outline-none" } placeholder={props.placeholder} value={props.value} onInput={(event) => props.onInput(event.currentTarget.value)} />
);