Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/schne324/react-offscreen

React component for offscreen text
https://github.com/schne324/react-offscreen

Last synced: about 2 months ago
JSON representation

React component for offscreen text

Awesome Lists containing this project

README

        

# react-offscreen

A react component for offscreen text

## Installation

```sh
npm i --save react-offscreen
```

## Usage

```js
import Offscreen from 'react-offscreen';

const app = (
I am offscreen text!
);
```

## Props
- `tag` _{String}_ (optional): desired tag for offscreen element (defaults to `'span'`)
- `children` _{Array|Object|String}_ (required): any valid react children

## `tag` prop examples

```js
const offscreenParagraph = (Hello World!);
const offscreenList = (

  • foo

  • bar

  • baz


  • )
    ```

    __See `demo/` directory for more examples__