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

@semcore/scroll-area

Package Overview
Dependencies
Maintainers
1
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semcore/scroll-area

SEMRush ScrollArea Component

  • 2.2.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.7K
decreased by-1.92%
Maintainers
1
Weekly downloads
 
Created
Source

##Basic use

  <ScrollArea style={{ width: 300, height: 300 }}>
    {[...new Array(1000)].map((_, ind) => (
       <div key={ind}>....</div>
    )}
  </ScrollArea>

##Custom use

<ScrollContainer>
    {(props) => (
        <ScrollPane {...props} style={{ maxWidth: width, height: 300 }}>
            {[...new Array(100)].map((_, ind) => (
              <div
                key={ind}
                style={{ background: ind === 32 ? '#f00' : '#fff', width: '900px' }}
              >
                Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eos est inventore
                laboriosam minus officiis omnis possimus vero? Assumenda cum necessitatibus
                perspiciatis quia vitae. Asperiores aut delectus ea ipsum nam! Doloremque?
              </div>
            ))}
        </ScrollPane>

        <ScrollBar
            orientation="vertical"
            {...props}
            style={{
              top: 0,
              right: -10,
              width: '10px',
              background: 'rgba(200, 200,200, 0.5)',
            }}
            sliderProps={{
              style: {
                width: '10px',
                height: '100px',
                background: 'pink',
              },
            }}
        />
    )}
 </ScrollContainer>

FAQs

Package last updated on 21 Jan 2021

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