New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

r-scrollable

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

r-scrollable

![example picture](https://raw.githubusercontent.com/KELEN/r-scrollable/master/public/scrollable-picture.png)

latest
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

元素溢出显示左右按钮组件

example picture

Demo

Demo

Install

npm i r-scrollable -S

使用

<ScrollableContainer
  className="container"
  distance={130}
  prevButton={
    <div className="op-btn">
      <svg className="svg" viewBox="0 0 18 18" role="img" aria-label="previous" focusable="false"><path d="m13.7 16.29a1 1 0 1 1 -1.42 1.41l-8-8a1 1 0 0 1 0-1.41l8-8a1 1 0 1 1 1.42 1.41l-7.29 7.29z" fillRule="evenodd"></path></svg>
    </div>
  }
  nextButton={
    <div className="op-btn">
      <svg className="svg" viewBox="0 0 18 18" role="img" aria-label="next" focusable="false"><path d="m4.29 1.71a1 1 0 1 1 1.42-1.41l8 8a1 1 0 0 1 0 1.41l-8 8a1 1 0 1 1 -1.42-1.41l7.29-7.29z" fillRule="evenodd"></path></svg>
    </div>
  }
>
  {
    items.map(item => <div key={item} className="item">{item}</div>)
  }
</ScrollableContainer>

FAQs

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