react-strike

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i react-strike

Weekly Downloads

1

Version

1.0.5

License

MIT

Last publish

Collaborators

  • zlatkofedor