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.
- 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.
To use the React Minimap component in your project, follow these steps:
- Install the package from npm:
npm install react-minimap
- Import the Minimap component into your React application:
import Minimap from 'react-minimap';
- Use the Minimap component in your code:
<Minimap content={yourContent} />
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