Label component.

A Label is a 2D text label anchored to a position on the map.

<Label target={mapData.getByType('space')[0]} text={"Hello, world!"} />

Properties

$$typeof: symbol
displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

propTypes?: any

Ignored by React.

Only kept in types for backwards compatibility. Will be removed in a future major release.