roa-mirage
Version:
[Live Demo of the Pattern Library](https://mealeyst.github.io/mirage/)
20 lines (15 loc) • 313 B
JavaScript
import PropTypes from 'prop-types'
import styled from 'styled-components'
const BaseHr = styled.hr`
height: 1px;
width: ${props => props.width};
border: none;
`
BaseHr.propTypes = {
width: PropTypes.string.isRequired
}
BaseHr.defaultProps = {
width: '100%'
}
/** @component */
export default BaseHr