From bed5a1dc6ee8cbd550bf7229ef3065d2295004ab Mon Sep 17 00:00:00 2001 From: Camila Belo Date: Sun, 2 Oct 2022 10:31:35 +0200 Subject: [PATCH] core: add changeset file Signed-off-by: Camila Belo --- .changeset/search-clouds-begin.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .changeset/search-clouds-begin.md diff --git a/.changeset/search-clouds-begin.md b/.changeset/search-clouds-begin.md new file mode 100644 index 0000000000..b3c6fa4b69 --- /dev/null +++ b/.changeset/search-clouds-begin.md @@ -0,0 +1,23 @@ +--- +'@backstage/plugin-search-react': minor +--- + +The `` component now accepts an optional property `disableRenderingWithNoResults` to disable rendering when no results are returned. +Possibility to provide a custom no results component if needed through the `noResultsComponent` property. + +Examples: + +_Rendering a custom no results component_ + +```jsx +} +/> +``` + +_Disable rendering when there are no results_ + +```jsx + +```