@shopify/polaris
Version:
Shopify’s admin product component library
18 lines (15 loc) • 477 B
JavaScript
import React from 'react';
import styles from './Divider.css.js';
const Divider = ({
borderColor = 'border-secondary',
borderWidth = '025'
}) => {
const borderColorValue = borderColor === 'transparent' ? borderColor : `var(--p-color-${borderColor})`;
return /*#__PURE__*/React.createElement("hr", {
className: styles.Divider,
style: {
borderBlockStart: `var(--p-border-width-${borderWidth}) solid ${borderColorValue}`
}
});
};
export { Divider };