UNPKG

@redocly/theme

Version:

Shared UI components lib

14 lines (13 loc) 576 B
import React from 'react'; import type { CodeWalkthroughFilter } from '@redocly/config'; export type GetFilterState = (groupId: string) => { value: string; render: boolean; } | null; export type CodeFilterProps = { filters: CodeWalkthroughFilter[]; getFilterState: GetFilterState; handleFilterSelect: (groupId: string, id: string) => void; filtersElementRef?: React.RefObject<HTMLDivElement | null>; }; export declare function CodeFilters({ filters, getFilterState, handleFilterSelect, filtersElementRef, }: CodeFilterProps): React.JSX.Element | null;