@redocly/theme
Version:
Shared UI components lib
19 lines (18 loc) • 543 B
TypeScript
import React from 'react';
import type { JSX } from 'react';
import type { SearchItemData } from '../../core/types';
type ActiveItem<T> = T & {
active?: boolean;
};
export type SearchItemProps = {
item: ActiveItem<SearchItemData>;
onClick?: VoidFunction;
product?: {
name: string;
icon?: string;
};
className?: string;
innerRef?: React.ForwardedRef<HTMLAnchorElement>;
};
export declare function SearchItem({ onClick, item, className, product, innerRef, }: SearchItemProps): JSX.Element;
export {};