UNPKG

@hypothesis/frontend-shared

Version:

Shared components, styles and utilities for Hypothesis projects

32 lines (31 loc) 1.01 kB
var _jsxFileName = "/home/runner/work/frontend-shared/frontend-shared/src/components/navigation/LinkUnstyled.js"; import classnames from 'classnames'; import { downcastRef } from '../../util/typing'; import LinkBase from './LinkBase'; /** * Render a link (`<a>`) with common attributes but no styling * * @typedef {import('../../types').PresentationalProps} CommonProps * @typedef {import('preact').JSX.HTMLAttributes<HTMLAnchorElement>} HTMLAnchorAttributes * * @param {CommonProps & HTMLAnchorAttributes} props */ import { jsxDEV as _jsxDEV } from "preact/jsx-dev-runtime"; export default function LinkUnstyled({ children, classes, elementRef, ...htmlAttributes }) { return _jsxDEV(LinkBase, { ...htmlAttributes, className: classnames(classes), elementRef: downcastRef(elementRef), "data-component": "LinkUnstyled", children: children }, void 0, false, { fileName: _jsxFileName, lineNumber: 23, columnNumber: 5 }, this); } //# sourceMappingURL=LinkUnstyled.js.map