# Isolate

Keeps a run of text in its own bidirectional context. Use it for anything
that is not copy from the message catalogue and may differ in direction or
language from its surroundings: a place name, an address, a feature title, a
coordinate, a scale label or a number with its unit. In right-to-left text
these would otherwise reorder, because the neighbouring punctuation and
numbers take the direction of the paragraph.

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

## Signature

```ts
import { Isolate } from "@mapcairn/map";
 
function Isolate(input: IsolateProps): JSX.Element;
```

## Parameters

- `{ figure, ...rest }`
- `input` (`IsolateProps`)

## Returns

`JSX.Element`

## Remarks

Renders a `bdi`, which isolates its content and, unless `figure` is
 set, takes its direction from the first strong letter. Pass `lang` where
 the language is known, so a screen reader pronounces a name in its own
 language. Text the catalogue substitutes into a sentence is isolated by
 the catalogue instead (`isolateParameters` in `createMessageCatalogue`).

## See also

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

Source: [packages/map/src/ui/Isolate/Isolate.tsx:30](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/ui/Isolate/Isolate.tsx#L30)
