npm.io
0.2.5 • Published 11 years ago

react-animated-label

Licence
MIT
Version
0.2.5
Deps
0
Vulns
0
Weekly
0
Stars
8

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

Keywords