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

react-nano-scrollbar

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-nano-scrollbar

react-nano-scrollbar

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-nano-scrollbar

workflow npm npm NPM

react-nano-scrollbar is a minimalist scrollbar library for React, inspired by perfect-scrollbar, implemented inside of React component with no external dependencies.

Installation

Install react-nano-scrollbar with either npm or yarn:

yarn add react-nano-scrollbar
# or
npm install react-nano-scrollbar

Then include the CSS with:

/* In your CSS/SCSS file: */
@import 'react-nano-scrollbar/dist/index.css';

or:

// In your JS/TS file (assuming your bundler supports loading CSS files):
import 'react-nano-scrollbar/dist/index.css';

Example usage

import { ScrollArea } from 'react-nano-scrollbar';

return (
  <ScrollArea className="example">
    <p>
      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed malesuada
      felis libero, maximus interdum lorem hendrerit ornare. In nisl nunc,
      finibus non gravida eu, dictum vitae metus. Proin feugiat enim purus, ac
      auctor elit facilisis et. Etiam sollicitudin lacus sed sollicitudin
      mattis. Maecenas nulla est, malesuada luctus fringilla vitae, feugiat sit
      amet massa. Sed ut tellus gravida, lobortis nunc vel, semper justo. Aenean
      sapien tellus, consectetur ac quam ut, molestie convallis sapien.
    </p>
  </ScrollArea>
);

Keywords

FAQs

Package last updated on 02 Sep 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