react-strike

Strike component for react

Usage no npm install needed!

<script type="module">
  import reactStrike from 'https://cdn.skypack.dev/react-strike';
</script>

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