1.1.0 • Published 4 years ago

ticker-lib v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

ticker-lib

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save ticker-lib

Usage

import React, { Component } from 'react'

import { GetTicker } from 'ticker-lib';

import './node_modules/ticker-lib/dist/index.css';

class Example extends Component {
  render() {
    return <MyComponent 
    			tickerObj={tickerObj}
    		/>
  }
}

Notes

I use this lib with google news https://newsapi.org/s/google-news-api, they send a json with title, i  just add the title to the ticker, but you can use whatever you want or create your on json, just remember add a node called title.

e.g. 
ticketObj=[
	{title:'Title one'},
	{title:'Title Two'}
]
background is transparent and font will use whatever font you are using on your project

Example: ticker demo

License

MIT ©