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

scrollbar-react-ie8

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrollbar-react-ie8

react scrollbar component compat IE8

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

scrollbar-react--ie8 自定义滚动条组件

更多API请看 react-custom-scrollbars

install dependencies

npm install

开发环境

npm start

打包命令

npm run build

API

参数说明类型默认值

react组件方式调用示例

import Scrollbar from 'scrollbar-react-ie8';
import 'scrollbar-react-ie8/lib/scrollbar.css'

class App extends Component{
  constructor(){
    super();
  }
  
  render(){
    return <div>
      <Scrollbar
        style={
            {
            width: 200,
            height: 100,
            marginLeft: 500,
            background: "#3ffb3f"
            }
        }
        thumbStyle={
            {
            background: "#bbb"
            }
        }
        trackStyle={
            {
            background: "#eee",
            }
        }
        onScroll = {this.handleScroll.bind(this)}
        >
            <div>此处是动态加载的内容</div>
        </Scrollbar>
    </div>
  }
}

ReactDOM.render(<App />,
  document.getElementById('app')
);

Keywords

FAQs

Package last updated on 11 Jun 2024

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