UNPKG

@material-ui/lab

Version:

Material-UI Lab - Incubator for Material-UI React components.

51 lines (47 loc) 1.64 kB
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { withStyles } from '@material-ui/core/styles'; export var styles = function styles(theme) { return { /* Styles applied to the root element. */ root: { width: 2, backgroundColor: theme.palette.grey[400], flexGrow: 1 } }; }; var TimelineConnector = /*#__PURE__*/React.forwardRef(function TimelineConnector(props, ref) { var classes = props.classes, className = props.className, other = _objectWithoutProperties(props, ["classes", "className"]); return /*#__PURE__*/React.createElement("span", _extends({ className: clsx(classes.root, className), ref: ref }, other)); }); process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes = { // ----------------------------- Warning -------------------------------- // | These PropTypes are generated from the TypeScript type definitions | // | To update them edit the d.ts file and run "yarn proptypes" | // ---------------------------------------------------------------------- /** * The content of the component. */ children: PropTypes.node, /** * Override or extend the styles applied to the component. * See [CSS API](#css) below for more details. */ classes: PropTypes.object, /** * @ignore */ className: PropTypes.string } : void 0; export default withStyles(styles, { name: 'MuiTimelineConnector' })(TimelineConnector);