VectorMapProps

PropTypeRequiredDefaultDescription
idstring✔️Unique ID of the SVG element.
namestring✔️Name of the map.
viewBoxstring✔️View box for the map.
layersVectorMapLayer[]✔️Layers that represent the regions of the map.
tabIndexnumber0Tab index for each layer. Set to '-1' to disable layer focusing.
layerPropsobjectProps to spread onto each layer.
checkedLayersstring[]Layer IDs to 'select' with the 'aria-checked' attribute.
currentLayersstring[]Layer IDs to 'select' with the 'aria-current' attribute.

VectorMapLayer

PropTypeRequiredDefaultDescription
idstring✔️Unique ID of each layer.
namestringName of the layer.
dstring✔️SVG path for the layer.