UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

32 lines 1.17 kB
var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; // REACT import * as React from 'react'; // VENDOR import classNames from 'classnames'; import styled from '@xstyled/styled-components'; import { space as spaceStyles } from '@xstyled/system'; const StyledDivider = styled('div') ` height: 0.5rem; padding: 0.5rem 1rem; hr { border: none; border-top: light; } ${spaceStyles} `; export const Divider = (_a) => { var { className } = _a, props = __rest(_a, ["className"]); return (React.createElement(StyledDivider, Object.assign({ className: classNames('anchor-list-divider', className) }, props), React.createElement("hr", null))); }; //# sourceMappingURL=Divider.component.js.map