Socket
Socket
Sign inDemoInstall

react-nano-scrollbar

Package Overview
Dependencies
3
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-nano-scrollbar

react-nano-scrollbar


Version published
Maintainers
1
Weekly downloads
27

Weekly downloads

Readme

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

Last updated on 02 Sep 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc