vinyl-component-blocks
Version:
Modular, Reusable, and Styled UI Component Library. Stop repeating work, install, call, use, modify.
9 lines • 450 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import { StyledLink } from './styled';
const Link = (props, ref) => {
const { className, disabled = false, children, as = 'a', href, } = props;
return (_jsx(StyledLink, { ref: ref, className: className, as: disabled ? 'p' : as, href: href, disabled: disabled, children: children }));
};
export default React.forwardRef(Link);
//# sourceMappingURL=link.js.map