Skip to main content

StatusMessageFocusProvider

Says where focus goes when a StatusMessage below it goes away and focus cannot return to where it came from. MapView supplies its own map region, so each map restores to itself; a host that renders messages without a MapView can supply its own stop. Without a provider, focus is left alone.

This is a function exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import { StatusMessageFocusProvider } from "@mapcairn/map";

function StatusMessageFocusProvider(input: StatusMessageFocusProviderProps): JSX.Element;

Parameters​

  • { fallback, children, }
  • input (StatusMessageFocusProviderProps)

Returns​

JSX.Element

See also​

Source: packages/map/src/ui/StatusMessage/StatusMessageFocus.tsx:29