|
1 | | -# react-blink-text |
2 | | -react-blink-text |
| 1 | +# React Blink |
| 2 | + |
| 3 | +This reusable React component will manage to blink any text and changing the text color and font size if we need. |
| 4 | + |
| 5 | +Blink takes plain HTML tags and outputs plain HTML tags. It's dead simple, and React beginner friendly. |
| 6 | + |
| 7 | +## Example |
| 8 | + |
| 9 | +``` |
| 10 | +import React, { Component } from "react"; |
| 11 | +import Blink from 'react-blink-text'; |
| 12 | + |
| 13 | +class Application extends Component { |
| 14 | + render() { |
| 15 | + return ( |
| 16 | + <div className="Application"> |
| 17 | + <Blink color='blue' text='TestReactApp' fontSize='20'> |
| 18 | + Testing the Blink |
| 19 | + </Blink> |
| 20 | + </div> |
| 21 | + ); |
| 22 | + } |
| 23 | +} |
| 24 | +export default Application; |
| 25 | +``` |
| 26 | + |
| 27 | +## Features |
| 28 | +1. Supports all html tags : H1, H2, h3,..,etc., Span, Div, A Href tag. |
| 29 | +2. Supports all different types of colors |
| 30 | +3. Supports server-side rendering. |
| 31 | + |
| 32 | +## Installation |
| 33 | + |
| 34 | +### Yarn: |
| 35 | +``` |
| 36 | +yarn add react-blink-text |
| 37 | +``` |
| 38 | + |
| 39 | +### npm: |
| 40 | +``` |
| 41 | +npm install --save react-blink-text |
| 42 | +``` |
0 commit comments