@hypothesis/frontend-shared
Version:
Shared components, styles and utilities for Hypothesis projects
33 lines (31 loc) • 997 B
JavaScript
var _jsxFileName = "/home/runner/work/frontend-shared/frontend-shared/src/components/layout/CardActions.js";
import classnames from 'classnames';
import { downcastRef } from '../../util/typing';
/**
* @typedef {import('../../types').PresentationalProps} CommonProps
* @typedef {import('preact').JSX.HTMLAttributes<HTMLElement>} HTMLAttributes
*/
/**
* Render a group of buttons or interactive elements inside a Card
*
* @param {CommonProps & HTMLAttributes} props
*/
import { jsxDEV as _jsxDEV } from "preact/jsx-dev-runtime";
export default function CardActions({
children,
classes,
elementRef,
...htmlAttributes
}) {
return _jsxDEV("div", { ...htmlAttributes,
className: classnames('flex items-center justify-end space-x-3', classes),
ref: downcastRef(elementRef),
"data-component": "CardActions",
children: children
}, void 0, false, {
fileName: _jsxFileName,
lineNumber: 23,
columnNumber: 5
}, this);
}
//# sourceMappingURL=CardActions.js.map