rayvision-search
v2.0.0-rc3
Published
search helper project
Downloads
541
Readme
rayvision-search
Usage
- install package
yarn add rayvision-search
- create provider
import { createSearchProvider } from "rayvision-search";
export const { SearchProvider, SearchList, SearchInput, useSearchContainer } = createSearchProvider<T>();
Component
SearchList
className?: string;
children?: (data: T) => JSX.Element;
loading?: JSX.Element;
empty?: JSX.Element;
SearchInput
onSearch?: (params: ISearchInitialState<T>["searchParams"]) => void;
className?: string;
placeholder?: string;
More info
check the example