0.0.8 • Published 3 years ago

react-sticky-sidebar v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-sticky-sidebar

A React implementation of sticky-sidebar

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save react-sticky-sidebar

Usage

import React, { Component } from 'react'

import StickySidebar from 'react-sticky-sidebar'
import 'react-sticky-sidebar/dist/index.css'

const Example = () => {
  const renderSidebarContent = () => (<>{/* aside container content */}</>)

  const renderContent = () => (<>{/* main container content */}</>)
  
  return (
    <div className="my-page">
      <StickySidebar
        topSpacing={96}
        sidebarContent={renderSidebarContent}
        content={renderContent}
      />
    </>
  )
}

License

MIT © tchesa

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago