Interface KeywordsProps

interface KeywordsProps {
    categorySuggestion?: boolean;
    categorySuggestionCount?: number;
    elementComponent?: ComponentType<ElementProps>;
    hits: SearchKeyword[];
    keywordComponent: ComponentType<KeywordProps>;
    keywordInCategoryComponent?: ComponentType<KeywordInCategoryProps>;
}

Properties

categorySuggestion?: boolean

Enable category suggestion (default: true)

categorySuggestionCount?: number

Number of category suggestions to render (default: 3)

elementComponent?: ComponentType<ElementProps>

Component for rendering single keyword element.

hits: SearchKeyword[]

Keywords to render.

keywordComponent: ComponentType<KeywordProps>

Component for rendering keyword's visual content.

keywordInCategoryComponent?: ComponentType<KeywordInCategoryProps>

Component for rendering keyword with category suggestion (default: KeywordInCategory)