react-announcement-ticker
v1.0.1
Published
React JS Announcement Ticker
Downloads
32
Maintainers
Readme
react-announcement-ticker
React JS Announcement/News Ticker
import React, {Component} from "react";
import {NewsTicker} from "react-announcement-ticker";
class App extends Component {
render() {
return (
<div className="App">
<NewsTicker
tickerBorderColor="#A7BFE8"
title={"Latest News Here"}
titleBackground={"linear-gradient(141deg, #0fb8ad 0%, #1fc8db 51%, #2cb5e8 75%)"}
newsList={[
{
text: "Facebook is making its biggest executive shuffle in company",
link: "http://fb.com"
},
{
text: "The Best Views of NASA's InSight Mars Lander Launch?",
link: "http://google.com"
},
{
text: "Are Jupiter and Venus Messing With Earth's Climate?",
link: "http://cnn.com"
}
]}
/>
</div>
);
}
}
export default App;