VectorMap

PropTypeRequiredDefaultDescription
idstring✔️Unique ID of the SVG element.
namestring✔️Name of the map.
viewBoxstring✔️View box for the map.
layersarrayOf(Layer)✔️Layers that represent the regions of the map.
tabIndexnumber0Tab index for each layer. Set to '-1' to disable layer focusing.
layerPropsobjectnullProps to spread onto each layer.
checkedLayersarrayOf(string)nullLayer IDs to 'select' with the 'aria-checked' attribute.
currentLayersarrayOf(string)nullLayer IDs to 'select' with the 'aria-current' attribute.

VectorMap Layer

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