Interface KeywordsInCategoryProps

interface KeywordsInCategoryProps {
    categoryField: string;
    categorySuggestionCount?: number;
    hit: SearchKeyword;
    keywordComponent: Element;
    keywordInCategoryComponent?: ComponentType<KeywordInCategoryProps>;
    wrapperComponent?: ComponentType<WrapperProps>;
}

Properties

categoryField: string

Field name for category suggestion.

categorySuggestionCount?: number

Number of category suggestions to render (default: 3)

hit: SearchKeyword

Keyword object.

keywordComponent: Element

Component for rendering keywords visual content.

keywordInCategoryComponent?: ComponentType<KeywordInCategoryProps>

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

wrapperComponent?: ComponentType<WrapperProps>

Component to wrap keyword content component. For e.g. AutocompleteElement.