fk-react-ui-components
Version:
Step 1 : Create a file in [ Seeds / Plants / Trees ] <br> Step 2 : It should export an Object with component name and story Component [Refer other components] <br> Step 3 : Story Component should return a react component <br> Step 3 : Created file should
21 lines (19 loc) • 555 B
JavaScript
import React from "react";
import PropTypes from 'prop-types';
import {Flex} from "../Layout";
import {TimelineContainer} from "./styles/Timeline";
export default class Timeline extends React.Component {
render(){
return(
<TimelineContainer borderProps={this.props.borderProperties}>
<Flex>
{this.props.children}
</Flex>
</TimelineContainer>
)
}
}
Timeline.PropTypes = {
children: PropTypes.node.isRequired,
borderProperties: PropTypes.object
};