# useFocusElement

Returns `element(name)`, the registered control in the document, or null.
Read-only: the first-visit tour uses it to ring the control a step names.

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

## Signature

```ts
import { useFocusElement } from "@mapcairn/map";
 
function useFocusElement(): (name: FocusName) => HTMLElement | null;
```

## Returns

`(name: FocusName) => HTMLElement | null`

## See also

- [`FocusName`](https://docs.mapcairn.com/api/map/FocusName.md)

Source: [packages/map/src/chrome/focusRegistry.tsx:123](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/chrome/focusRegistry.tsx#L123)
