# react-fixed-page

> Declaratively fix the underlying scrolling element of a page for use in overlay elements

Latest version **1.0.1** (published 2017-01-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-fixed-page
pnpm add react-fixed-page
yarn add react-fixed-page
bun add react-fixed-page
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-01-18 |
| First published | 2017-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Moody Salem |
| Maintainers | fast.model |

## Links

- npm: https://www.npmjs.com/package/react-fixed-page
- Repository: https://github.com/moodysalem/react-fixed-page
- Homepage: https://github.com/moodysalem/react-fixed-page#readme
- Issues: https://github.com/moodysalem/react-fixed-page/issues
- npm.io page: https://npm.io/package/react-fixed-page

## Recent versions

- 1.0.1 (latest) — 2017-01-18
- 1.0.0 — 2017-01-18

## README

# [![npm](https://img.shields.io/npm/v/react-fixed-page.svg?maxAge=86400)](https://www.npmjs.com/package/react-fixed-page) [![Build Status](https://travis-ci.org/moodysalem/react-fixed-page.svg)](https://travis-ci.org/moodysalem/react-fixed-page) react-fixed-page
Declaratively fix the underlying scrolling element of a page for use in overlay elements

# Install
`yarn add react-fixed-page`

# Props
This component has a single prop named fixed. You should render this element with fixed={true} to fix the page from scrolling.

# Usage

    import FixedPage from 'react-fixed-page';
    import React, { Component } from 'react';

    export default class MyModal extends Component {
      render() {
        const { open } = this.props;
        return (
          <div>
            { open ? this.renderModal() : null }
            <FixedPage fixed={open}/>
          </div>
        );
      }
    }

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