Components
AbbreviateNumberActionLinkAdaptiveCardAffixAuthorityCheckCalendarViewChartConfirmDialogContainerCustomFormatInputDataTableDebounceInputDoubleSidedImageEllipsisButtonGanttChartGrowShrinkValueIconTextImageGalleryLoadingMasonryMediaSkeletonNavToggleNumericInputOtpInputPasswordInputPatternInputRegionMapRichTextEditorSegmentItemOptionStickyFooterSyntaxHighlighterUsersAvatarGroup
RegionMap
A simple geodata component wrap on top of react-simple-maps.
Example
Example usage.
API
RegionMap
| Prop | Description | Type | Default |
|---|---|---|---|
| data | Map data | Array<{name: string, value: string | number}> | [] |
| mapSource | Geography SVG, More geography SVG can be found in this repository | string | string[] | |
| valuePrefix | Render a prefix content before the value | string | - |
| valueSuffix | Render a suffix content next to the value | string | - |