Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-minimap-redux

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-minimap-redux

A minimap for React

  • 0.9.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
183
decreased by-12.02%
Maintainers
1
Weekly downloads
 
Created
Source
  • Originally forked from jeremy-carbonne/react-minimap

react-minimap

A minimap for React based on jquery-minimap

Demo

react-minimap

Installation

yarn add react-minimap-redux

Usage

import Minimap from "react-minimap-redux";
import "react-minimap-redux/dist/react-minimap.css";
<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 nameTypeDefault valueDescription
selectorstringis requiredA css selector for specify what you want to render inside the minimap
classNamestring''A className for the minimap component
widthnumber200
heightnumber200
keepAspectRatiobooleanfalse
childComponentanyInternal ComponentAllows customizing how components matched by selector are rendered (optional)
onMountCenterOnXbooleanfalse
onMountCenterOnYbooleanfalse

Keywords

FAQs

Package last updated on 01 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc