0.0.8 • Published 2 years ago

react-sticky-sidebar v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago