Prop | Type | Required | Default | Description |
---|---|---|---|---|
id | string | ✔️ | Unique ID of the SVG element. | |
name | string | ✔️ | Name of the map. | |
viewBox | string | ✔️ | View box for the map. | |
layers | VectorMapLayer[] | ✔️ | Layers that represent the regions of the map. | |
tabIndex | number | 0 | Tab index for each layer. Set to '-1' to disable layer focusing. | |
layerProps | object | Props to spread onto each layer. | ||
checkedLayers | string[] | Layer IDs to 'select' with the 'aria-checked' attribute. | ||
currentLayers | string[] | Layer IDs to 'select' with the 'aria-current' attribute. |
Prop | Type | Required | Default | Description |
---|---|---|---|---|
id | string | ✔️ | Unique ID of each layer. | |
name | string | Name of the layer. | ||
d | string | ✔️ | SVG path for the layer. |