JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q48294F
  • License MIT

Strike component

Package Exports

  • react-strike

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-strike) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React strike

Strike component for react

strike

NPM version build status Test coverage

Parameters

  • height (Number, default = 1) - height of the line
  • color (String, default = 'silver') - color of the line
  • space (Number, default = 15) - space between line and content

Support us

Star this project on GitHub.

Usage

import React, { Component } from 'react';
import Strike from 'react-strike';

export default class Example extends Component {
  render() {
    return (
      <Strike color="red">
        Text in the strike
      </Strike>
    );
  }
}

Try our other React components

Credits

Zlatko Fedor