@hypothesis/frontend-shared
Version:
Shared components, styles and utilities for Hypothesis projects
40 lines (38 loc) • 1.1 kB
JavaScript
var _jsxFileName = "/home/runner/work/frontend-shared/frontend-shared/src/components/input/ButtonUnstyled.js";
import classnames from 'classnames';
import { downcastRef } from '../../util/typing';
import ButtonBase from './ButtonBase';
/**
* @typedef {import('../../types').PresentationalProps} CommonProps
* @typedef {import('./ButtonBase').ButtonCommonProps} ButtonCommonProps
*/
/**
* Render a button with common attributes but no styling
*
* @param {CommonProps & ButtonCommonProps} props
*/
import { jsxDEV as _jsxDEV } from "preact/jsx-dev-runtime";
export default function ButtonUnstyled({
children,
classes,
elementRef,
expanded,
pressed,
title,
...htmlAttributes
}) {
return _jsxDEV(ButtonBase, { ...htmlAttributes,
className: classnames(classes),
elementRef: downcastRef(elementRef),
expanded: expanded,
pressed: pressed,
title: title,
"data-component": "ButtonUnstyled",
children: children
}, void 0, false, {
fileName: _jsxFileName,
lineNumber: 28,
columnNumber: 5
}, this);
}
//# sourceMappingURL=ButtonUnstyled.js.map