join-react-widgets
v1.1.1
Published
Join widgets as a React component
Downloads
3
Readme
join-react-widgets
Install
npm install --save join-react-widgets
Usage
import React, { Component } from 'react';
import JoinWidget from 'join-react-widgets';
class Example extends Component {
render() {
return <JoinWidget teamId="join-demo" alias="join-stories-default-all" />
}
}
### Props
| Prop | description | default | |---|---|---| |teamId |Widgets teamId. |'join-demo' | |alias |Widgets alias. |'join-stories-default-all' | |limit |Limit number of stories to display.|10 | |sortBy |Sort Method. |'desc' | |borderColors |Colors to generate the gradient for borders. |['#0A78E3', '#0ADAE3'] | |innerColor |The color of the inner border. |'black' | |skeletonColor |The color of the skeleton elements. |'#313132' | |spacing |Space between stories. |5 | |labelsStyle |Style object for labels. |{} | |size |Size a bullet. |100 | |outerBorderSize |Size of the outer border. |2 | |innerBorderSize |Size of the inner border. |2 |