Skip to main content

SearchResultGroupLayoutProps

Home > @backstage/plugin-search-react > SearchResultGroupLayoutProps

Props for SearchResultGroupLayout()

Signature:

export type SearchResultGroupLayoutProps<FilterOption> = ListProps & {
error?: Error;
loading?: boolean;
icon: JSX.Element;
title: ReactNode;
titleProps?: Partial<TypographyProps>;
link?: ReactNode;
linkProps?: Partial<LinkProps>;
filterOptions?: FilterOption[];
renderFilterOption?: (value: FilterOption, index: number, array: FilterOption[]) => JSX.Element | null;
filterFields?: string[];
renderFilterField?: (key: string) => JSX.Element | null;
resultItems?: SearchResult[];
renderResultItem?: (value: SearchResult, index: number, array: SearchResult[]) => JSX.Element | null;
noResultsComponent?: ReactNode;
disableRenderingWithNoResults?: boolean;
};

References: LinkProps, SearchResult