@gmana/react-header-sticky
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

React Header Sticky

Install

  • yarn add @gmana/react-header-sticky lodash.throttle classnames

Usage

// tailwindcss
import GReactHeaderSticky from '@gmana/react-header-sticky';
import { FC } from 'react';

const GHeader: FC = () => {
  return (
    <GReactHeaderSticky classNames='sticky top-0 text-gray-900 bg-white z-40 transition-all duration-150' classNamesOnScroll='shadow-lg'>
      <h1>GMana</h1>
    </GReactHeaderSticky>
  );
};

export default GHeader;

Readme

Keywords

Package Sidebar

Install

npm i @gmana/react-header-sticky

Weekly Downloads

0

Version

0.0.4

License

SEE LICENSE IN LICENSE.md

Unpacked Size

73 kB

Total Files

6

Last publish

Collaborators

  • sun_sreng