@10up/block-components
Version:
10up Components built for the WordPress Block Editor.
20 lines • 844 B
TypeScript
/// <reference types="react" />
import type { ContentSearchMode, IdentifiableObject, QueryFilter, RenderItemComponentProps } from './types';
import { NormalizedSuggestion } from './utils';
export interface ContentSearchProps {
onSelectItem: (item: NormalizedSuggestion) => void;
placeholder?: string;
label?: string;
hideLabelFromVision?: boolean;
contentTypes?: Array<string>;
mode?: ContentSearchMode;
perPage?: number;
queryFilter?: QueryFilter;
excludeItems?: Array<IdentifiableObject>;
renderItemType?: (props: NormalizedSuggestion) => string;
renderItem?: (props: RenderItemComponentProps) => JSX.Element;
fetchInitialResults?: boolean;
}
declare const ContentSearchWrapper: React.FC<ContentSearchProps>;
export { ContentSearchWrapper as ContentSearch };
//# sourceMappingURL=index.d.ts.map