1.0.0 • Published 4 years ago

dzh-react-sticky v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

dzh-react-sticky

React中固钉(粘性布局)组件实现

Prop Types

PropertyTypeRequired?Description
contentHeightNumber被固钉组件包裹起来的内容高度

How To Use

import React, { Component } from 'react'
import { Sticky } from 'dzh-react-sticky'

class Example extends Component {
    render()(
      return <div>
        ...
        <Sticky contentHeight={40}>
        	{% 被固钉组件包裹起来的子组件 %}
        	<Filter />
        </Sticky>
        ...
      </div>
    )
}

License

dzh-react-sticky is available under the MIT License.