Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

uraway/react-twitter-embedded-timeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Widget Settings Depricated

https://twittercommunity.com/t/deprecating-widget-settings/102295

react-twitter-embedded-timeline

Simple React component for Twitter Embedded Timeline

Install

npm install --save react-twitter-embedded-timeline

Example

import React from 'react';
import ReactDOM from 'react-dom';
import TwitterTimeline from 'react-twitter-embedded-timeline';

ReactDOM.render(
  <TwitterTimeline widgetId="695868534455275520" chrome="noborders noheader" height={300} />,
  document.getElementById('app')
);

Required props

Option Description
widgetId Create a widget here

get the widget ID (e.g. <a data-widget-id="your widget ID">****</a>)

Optional props

You can highly customize the Timeline only if you set widgetId.

Option Description
chrome noheader, nofooter, noborders, noscrollbar, transparent
limit Display a specific number of items between 1 and 20. The timeline is fixed.
user Your username on Twitter
height See #Dimensions
width See #Dimensions
loading The text to display while the Timeline is loading.

MIT licensed

About

Simple React component for Twitter Embedded Timeline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •