0.7.4 • Published 6 years ago

react-minimap v0.7.4

Weekly downloads
248
License
MIT
Repository
github
Last release
6 years ago

react-minimap

NPM

A minimap for React based on jquery-minimap

Demo

react-minimap

Installation

npm i --save react-minimap

Usage

import Minimap from 'react-minimap';
<Minimap selector=".card">
	<div className="card">
		<h1>Title</h1>
	</div>
	<div className="card">
		<h1>Title 2</h1>
		<div className="card">
			<h1>Titles are never rendered by the Minimap</h1>
		</div>
	</div>
</Minimap>

Configuration

The Minimap supports the following props:

Prop nameTypeDefault valueDescription
selectorstringis requiredA css selector for specify what you want to render inside the minimap
classNamestring''A className for the minimap component
widthnumber200
heightnumber200
keepAspectRatiobooleanfalse
childComponentanyInternal ComponentAllows customizing how components matched by selector are rendered (optional)
onMountCenterOnXbooleanfalse
onMountCenterOnYbooleanfalse
0.8.1-alpha-3

6 years ago

0.8.1-alpha-2

6 years ago

0.8.1-alpha-1

6 years ago

0.8.1

6 years ago

0.7.4

6 years ago

0.8.0-alpha.1

6 years ago

0.8.0

6 years ago

0.7.3

6 years ago

0.7.2

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

1.0.0

7 years ago