react-instantsearch
Version:
⚡ Lightning-fast search for React, by Algolia
9 lines (8 loc) • 599 B
TypeScript
import React from 'react';
import type { PartialKeys } from '../types';
import type { ToggleRefinementProps as ToggleRefinementUiComponentProps } from '../ui/ToggleRefinement';
import type { UseToggleRefinementProps } from 'react-instantsearch-core';
type UiProps = Pick<ToggleRefinementUiComponentProps, 'onChange' | 'checked'>;
export type ToggleRefinementProps = PartialKeys<Omit<ToggleRefinementUiComponentProps, keyof UiProps>, 'label'> & UseToggleRefinementProps;
export declare function ToggleRefinement({ attribute, on, off, ...props }: ToggleRefinementProps): React.JSX.Element;
export {};