Home > @yext/search-ui-react > AlternativeVerticals
A component that displays the alternative verticals that have results if a search returns none on the current vertical.
Signature:
export declare function AlternativeVerticals({ currentVerticalLabel, verticalConfigMap, displayAllOnNoResults, customCssClasses }: AlternativeVerticalsProps): JSX.Element | null;
Parameter | Type | Description |
---|---|---|
{ currentVerticalLabel, verticalConfigMap, displayAllOnNoResults, customCssClasses } | AlternativeVerticalsProps |
Returns:
JSX.Element | null
A React element for the alternative verticals, or null if there are none with results