Skip to content

React Element that allows its content to be panned and zoomed.

License

Notifications You must be signed in to change notification settings

nathanial/react-pan-zoom-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Pan Zoom Element

NPM Version NPM Downloads

Installation

npm install react-pan-zoom-element --save

Usage

Add the CSS file

  <link rel="stylesheet" type="text/css" href="path/to/react-pan-zoom-element/components.css">

Import the PanZoomElement

import React from 'react';
import ReactDOM from 'react-dom';
import PanZoomElement from 'react-pan-zoom-element';

const App = () => (
  <PanZoomElement width={100} height={100}>
    <h1>Zoomable thing</h1>
  </PanZoomElement>
);
ReactDOM.render(
  <App />,
  document.getElementById('app')
);

Documentation

http://nathanial.github.io/react-pan-zoom-element/

About

React Element that allows its content to be panned and zoomed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published