Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/schne324/react-offscreen
- Owner: schne324
- License: mit
- Created: 2018-01-24T00:47:51.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-19T17:24:38.000Z (over 6 years ago)
- Last Synced: 2024-08-10T09:57:29.041Z (5 months ago)
- Language: JavaScript
- Homepage: https://github.com/schne324/react-offscreen#readme
- Size: 240 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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 = (
)
```
__See `demo/` directory for more examples__