ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...
    • Hook returning the status-bar context, used to read or update the message shown in the bottom status bar (e.g. hovered link URLs, transient flashes).

      Returns StatusBarContextValue

      The StatusBarContextValue from the nearest provider.

      const { setStatusText } = useStatusBar();
      <a onMouseEnter={() => setStatusText(href)} onMouseLeave={() => setStatusText(null)} />
      export function useStatusBar() {
      return useContext(StatusBarContext);
      }