Socket
Book a DemoInstallSign in
Socket

react-offscreen

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-offscreen

React component for offscreen text

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

react-offscreen

A react component for offscreen text

Installation

npm i --save react-offscreen

Usage

import Offscreen from 'react-offscreen';

const app = (
  <Offscreen>I am offscreen text!</Offscreen>
);

Props

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

tag prop examples

const offscreenParagraph = (<Offscreen tag='p'>Hello World!</Offscreen>);
const offscreenList = (
  <Offscreen tag='ul'>
    <li>foo</li>
    <li>bar</li>
    <li>baz</li>
  </Offscreen>
)

See demo/ directory for more examples

Keywords

a11y

FAQs

Package last updated on 19 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts