2021-01-25 18:37:58 +00:00
|
|
|
import React from "react";
|
|
|
|
import useBluelibClassNames from "../../hooks/useBluelibClassNames";
|
|
|
|
import PropTypes from "prop-types";
|
|
|
|
|
|
|
|
|
2021-03-23 15:32:25 +00:00
|
|
|
export default function Anchor({children, className, href, ...props}) {
|
2021-01-25 18:37:58 +00:00
|
|
|
return (
|
2021-03-23 15:32:25 +00:00
|
|
|
<a className={useBluelibClassNames(`element-anchor`, className)} href={href} {...props}>
|
2021-01-25 18:37:58 +00:00
|
|
|
{children}
|
|
|
|
</a>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Anchor.propTypes = {
|
|
|
|
children: PropTypes.node,
|
|
|
|
className: PropTypes.string,
|
2021-01-26 00:57:14 +00:00
|
|
|
href: PropTypes.string
|
2021-01-25 18:37:58 +00:00
|
|
|
}
|