react-minimap
A minimap for React
Last updated a year ago by jcarbonn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-minimap 
SYNC missed versions from official npm registry.

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 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

Current Tags

  • 0.8.1                                ...           alpha-1 (a year ago)
  • 0.7.4                                ...           latest (a year ago)
  • 0.8.1-alpha-3                                ...           next (a year ago)

17 Versions

  • 0.8.1-alpha-3                                ...           a year ago
  • 0.8.1-alpha-2                                ...           a year ago
  • 0.8.1-alpha-1                                ...           a year ago
  • 0.8.1                                ...           a year ago
  • 0.7.4                                ...           a year ago
  • 0.8.0                                ...           a year ago
  • 0.7.3                                ...           2 years ago
  • 0.7.2                                ...           2 years ago
  • 0.7.1                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 18
Last Day 0
Last Week 1
Last Month 4
Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |