mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-23 12:04:22 +00:00
20 lines
455 B
JavaScript
20 lines
455 B
JavaScript
|
import React from "react";
|
||
|
import useBluelibClassNames from "../../hooks/useBluelibClassNames";
|
||
|
import PropTypes from "prop-types";
|
||
|
|
||
|
|
||
|
export default function Anchor({children, className, href}) {
|
||
|
return (
|
||
|
<a className={useBluelibClassNames("element-anchor", className)} href={href}>
|
||
|
{children}
|
||
|
</a>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
|
||
|
Anchor.propTypes = {
|
||
|
children: PropTypes.node,
|
||
|
className: PropTypes.string,
|
||
|
href: PropTypes.string,
|
||
|
}
|