Backstage
    Preparing search index...
    • Use this hook to manage the state of SearchModal and change its visibility. Monitors route changes setting the hidden state to avoid having to call toggleModal on every result click.

      Parameters

      • initialState: boolean = false

        pass true to make the modal initially visible

      Returns SearchModalValue

      an object containing the state of the modal together with functions for changing the visibility of the modal.