@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
18 lines (17 loc) • 800 B
TypeScript
import type { CSSProperties, ReactNode } from 'react';
import type { FilterChangeState, FilterValue } from './FilterContext';
import type { SpacingProps } from '../../shared/types';
export type FilterRootProps = {
id?: string;
behavior?: 'realtime' | 'manual';
defaultFilters?: Record<string, FilterValue>;
defaultPanelOpen?: boolean;
resultCount?: number;
resultLoading?: boolean;
onChange?: (state: FilterChangeState) => void;
className?: string;
style?: CSSProperties;
children?: ReactNode;
} & SpacingProps;
declare function FilterRoot({ id, behavior, defaultFilters, defaultPanelOpen, resultCount, resultLoading, onChange, className, style, children, ...spacingRest }: FilterRootProps): import("react/jsx-runtime").JSX.Element;
export default FilterRoot;