Backstage
    Preparing search index...
    • A context provider responsible for storing and managing state related to the search modal.

      Parameters

      Returns Element

      If you need to control visibility of the search toggle outside of the modal itself, you can optionally place this higher up in the react tree where your custom code and the search modal share the same context.

      import {
      SearchModalProvider,
      SidebarSearchModal,
      } from '@backstage/plugin-search';

      // ...

      <SearchModalProvider>
      <KeyboardShortcutSearchToggler />
      <SidebarSearchModal>
      {({ toggleModal }) => <SearchModal toggleModal={toggleModal} />}
      </SidebarSearchModal>
      </SearchModalProvider>