# @xper/react-sticky-headers

> Stackable sticky headers for React

Latest version **1.0.0** (published 2021-02-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @xper/react-sticky-headers
pnpm add @xper/react-sticky-headers
yarn add @xper/react-sticky-headers
bun add @xper/react-sticky-headers
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-02-04 |
| First published | 2021-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Brandon Duffany |
| Maintainers | bduffs |

## Links

- npm: https://www.npmjs.com/package/@xper/react-sticky-headers
- Repository: https://github.com/xperjs/react-sticky-headers
- Homepage: https://github.com/xperjs/react-sticky-headers#readme
- Issues: https://github.com/xperjs/react-sticky-headers/issues
- npm.io page: https://npm.io/package/@xper/react-sticky-headers

## Recent versions

- 1.0.0 (latest) — 2021-02-04
- 0.0.5 — 2021-02-04
- 0.0.4 — 2021-02-04
- 0.0.3 — 2021-02-04
- 0.0.1 — 2021-02-02

## README

# React Sticky Headers

Pixel-perfect stackable sticky headers for React!

![](https://media1.giphy.com/media/jjN4kxU04p9YBPoPB4/giphy.gif)

## Install

```bash
# With yarn:
yarn install @xper/react-sticky-headers

# With npm:
npm install @xper/react-sticky-headers
```

## Usage

```tsx
import Sticky, { StickyHost } from '@xper/react-sticky-headers';
// Import the default styles (optional).
import '@xper/react-sticky-headers/dist/style.css';

export default function MyApp() {
  return (
    // Wrap your scrolling content with <StickyHost>, then add <Sticky> children.
    <StickyHost>
      {/* This sticky will stick to the top of the page. */}
      <Sticky>...</Sticky>
      {/* This non-sticky content will be scrolled past. */}
      <div>...</div>
      {/* This sticky content will stack below the first sticky. */}
      <Sticky>...</Sticky>
    </StickyHost>
  );
}
```

## More documentation

See the docs in [src/index.tsx](src/index.tsx).

---
_Source: https://npm.io/package/@xper/react-sticky-headers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
