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
24 lines (22 loc) • 638 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 React.createElement(
TimelineContainer,
{ borderProps: this.props.borderProperties },
React.createElement(
Flex,
null,
this.props.children
)
);
}
}
Timeline.PropTypes = {
children: PropTypes.node.isRequired,
borderProperties: PropTypes.object
};
//# sourceMappingURL=timeline.js.map