0.9.12 • Published 2 years ago

react-isle v0.9.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-isle

A javascript library leveraging HammerJS' multi-touch gestures to drag, zoom in/out, minimize and maximize React components (isles).

Let your isles be free and errant on the screen OR contain and gather them together. How would you call a group of isles? Exact: an archipelago! Isles in an archipelago can be minimized and stacked!

Installation

npm i react-hammerjs react-isle

Usage

import Isle, { Archipelago } from "react-isle";

export default function App() {
  return(
    <>
      <Archipelago>
        <Isle className="my-isle" onMaximize={() => alert("Maxi")}>
          <img src="https://picsum.photos/512/400" />
        </Isle>

        <Isle hideFrame params={{ scale: 0.5, x: 300 }}>
          <h1>Isle 2</h1>
        </Isle>

        <Isle title="Contained Framed Isle">
          <h1>Isle 3</h1>
        </Isle>
      </Archipelago>
			
      <Isle title="Errant Isle">
        <h1>Errant Isle</h1>
      </Isle>
    </>);
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

0.9.12

2 years ago

0.9.8

2 years ago

0.9.7

2 years ago

0.9.9

2 years ago

0.9.10

2 years ago

0.9.11

2 years ago

0.9.6

2 years ago

0.9.5

2 years ago

0.9.4

2 years ago

0.9.3

2 years ago

0.9.2

2 years ago

0.9.1

2 years ago

0.9.0

2 years ago