https://github.com/keploy/react-minimap
https://github.com/keploy/react-minimap
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/keploy/react-minimap
- Owner: keploy
- License: gpl-3.0
- Created: 2024-07-22T09:29:19.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-30T14:36:02.000Z (11 months ago)
- Last Synced: 2025-03-09T20:49:28.577Z (3 months ago)
- Language: JavaScript
- Size: 728 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Minimap
This repository contains a React component called "Minimap" that provides a miniature overview of a larger content area. The Minimap component is designed to enhance user experience by allowing them to quickly navigate and visualize the entire content area.
## Features
- Displays a scaled-down representation of the content area
- Provides customizable options for appearance and behavior**React Version Compatibility:** The React Minimap component is compatible with React versions 16.8 and above.
## Installation
To use the React Minimap component in your project, follow these steps:
1. Install the package from npm:
```bash
npm install react-minimap
```2. Import the Minimap component into your React application:
```javascript
import Minimap from 'react-minimap';
```3. Use the Minimap component in your code:
```javascript
```
## Customization
The Minimap component provides various options for customization. You can customize the appearance and behavior of the minimap by passing additional props.
Here are some examples of customization options:
- `width`: Specifies the width of the minimap (default: 200px)
- `height`: Specifies the height of the minimap (default: 150px)
- `zoomLevel`: Specifies the initial zoom level of the minimap (default: 1)
- `onZoomChange`: Callback function triggered when the zoom level changes