react-animated-label

0.2.5 • Public • Published

React Animated Label

An animated label component for React.js

Demo

NPM

Installation

npm install react-animated-label --save-dev

Usage

Webpack

import React from 'react';
import AnimatedLabel from 'react-animated-label';
// Import the CSS
import 'node_modules/react-animated-label/lib/react-animated-label.css';

React.createClass({
  render: function() {
    return (
    	<AnimatedLabel value={this.props.yourValue} />
    );
  }

});

Non-webpack

var React = require('react');
var AnimatedLabel = require('react-animated-label');

React.createClass({
  render: function() {
    return (
    	<AnimatedLabel value={this.props.yourValue} />
    );
  }

});

Note

You must include the CSS for this component to work. Include the component stylesheet in your page <link rel="stylesheet" type="text/css" href="node_modules/react-animated-label/lib/react-animated-label.css">

Inspired by Chartbeat's cb-animated-label

Readme

Keywords

Package Sidebar

Install

npm i react-animated-label

Weekly Downloads

0

Version

0.2.5

License

MIT

Last publish

Collaborators

  • jemyoung