1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-23 03:54:21 +00:00
bluelib/src/components/Anchor/index.js
2021-03-23 18:15:30 +01:00

19 lines
472 B
JavaScript

import React from "react"
import useBluelibClassNames from "../../hooks/useBluelibClassNames"
import PropTypes from "prop-types"
export default function Anchor({children, className, href, ...props}) {
return (
<a className={useBluelibClassNames(`element-anchor`, className)} href={href} {...props}>
{children}
</a>
)
}
Anchor.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
href: PropTypes.string
}