261023_03_ENH: 자동완성 검색 일치 방식(fuzzy/contains) 옵션 추가

This commit is contained in:
2026-10-23 15:15:34 +09:00
parent 7b57ff2c5f
commit bffd953343
11 changed files with 70 additions and 8 deletions

View File

@@ -4,9 +4,10 @@ import { cn } from "@/lib/utils";
export interface CommandProps extends HTMLAttributes<HTMLDivElement> {
shouldFilter?: boolean;
filter?: (value: string, search: string, keywords?: string[]) => number;
}
export function Command({ className, shouldFilter, ...props }: CommandProps) {
export function Command({ className, shouldFilter, filter: _filter, ...props }: CommandProps) {
return <div data-should-filter={shouldFilter} className={cn(className)} {...props} />;
}