You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

scrollomatic

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrollomatic

Pretty scrollbar container for react

1.0.9
latest
Source
npmnpm
Version published
Maintainers
2
Created
Source

Scrollomatic

Pretty scrollbar container for react

NPM JavaScript Style Guide

:baby_bottle: scrollomatic is in alpha

Install

npm install --save scrollomatic

Live Example

Live Scrollomatic Example

Usage

Here we have a small div with a much larger div within it. The the larger div is wrapped with a Scrollomatic which will assume the size of it's parent.

You can pass styles to Scrollomatic with a styles= property.

export default class App extends Component {

  render () {
    return (
      <div style={{
          margin: 30,
          width:250, 
          height: 250, 
          overflow: 'hidden',
          backgroundColor: 'lightgray',
          fontSize: 22,
          borderWidth: 1, 
          borderStyle: 'solid',
          borderColor: 'black'}}>
        <Scrollomatic>
          <div>
            Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
          </div>
        </Scrollomatic>
      </div>
    )
  }
}

License

MIT

Copyright 2018, Crowd Conduct Corp.

FAQs

Package last updated on 04 Feb 2019

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.