1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-23 20:14:21 +00:00
bluelib/src/components/Underline/index.js

19 lines
434 B
JavaScript
Raw Normal View History

2021-03-23 17:15:30 +00:00
import React from "react"
import useBluelibClassNames from "../../hooks/useBluelibClassNames"
import PropTypes from "prop-types"
2021-01-25 18:37:58 +00:00
2021-03-23 15:32:25 +00:00
export default function Underline({children, className, ...props}) {
2021-01-25 18:37:58 +00:00
return (
2021-03-23 15:32:25 +00:00
<u className={useBluelibClassNames("style-underline", className)} {...props}>
2021-01-25 18:37:58 +00:00
{children}
</u>
)
}
Underline.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
}