261023_03_ENH: 자동완성 검색 일치 방식(fuzzy/contains) 옵션 추가
This commit is contained in:
@@ -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} />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user