UNPKG

@needslist/react-filter-url-builder

Version:

This is a react component that builds a url with filters

10 lines (9 loc) 520 B
import { PropsWithChildren } from "react"; type FilterContextType = [string, (name: string, value: string) => void]; declare const FilterContext: import("react").Context<FilterContextType>; type FilterProviderProps = PropsWithChildren & { onChange: (queryString: string) => void; }; declare const FilterProvider: ({ children, onChange }: FilterProviderProps) => import("react/jsx-runtime").JSX.Element; declare const useFilterStore: () => FilterContextType; export { FilterContext, FilterProvider, useFilterStore };