Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 993 Bytes

search-ui-react.alternativeverticals.md

File metadata and controls

26 lines (15 loc) · 993 Bytes

Home > @yext/search-ui-react > AlternativeVerticals

AlternativeVerticals() function

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;

Parameters

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