react-minimap
A minimap for React based on jquery-minimap
Demo
Installation
npm i --save react-minimap
Usage
;
Title Title 2 Titles are never rendered by the Minimap
Configuration
The Minimap
supports the following props:
Prop name | Type | Default value | Description |
---|---|---|---|
selector | string | is required | A css selector for specify what you want to render inside the minimap |
className | string | '' | A className for the minimap component |
width | number | 200 |
|
height | number | 200 |
|
keepAspectRatio | boolean | false |
|
childComponent | any | Internal Component | Allows customizing how components matched by selector are rendered (optional) |
onMountCenterOnX | boolean | false |
|
onMountCenterOnY | boolean | false |