Skip to content

mskw23/react-censored

Repository files navigation

react-censored

Small library for censoring your text

NPM JavaScript Style Guide

ReactCensored

Install

npm install --save react-censored
yarn add react-censored

Usage

import React from 'react'
import { ReactCensored } from 'react-censored'

const ParagraphWithCensor = () => {
  return (
    <main>
      <h1>
        React
        <ReactCensored blur={8} color='hotpink'>
          Censored
        </ReactCensored> 👀
      </h1>
    </main>
  )
}

export default ParagraphWithCensor

TODO

  • Add some serious unit tests ¯_(ツ)_/¯

License

MIT © mskwio

About

Small library for censoring your text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published