UNPKG

@hypothesis/frontend-shared

Version:

Shared components, styles and utilities for Hypothesis projects

34 lines (32 loc) 951 B
var _jsxFileName = "/home/runner/work/frontend-shared/frontend-shared/src/components/layout/CardTitle.js"; import classnames from 'classnames'; import { downcastRef } from '../../util/typing'; /** * @typedef {import('../../types').PresentationalProps} CommonProps * @typedef {import('preact').JSX.HTMLAttributes<HTMLElement>} HTMLAttributes * */ /** * Style a title for a Card * * @param {CommonProps & HTMLAttributes} props */ import { jsxDEV as _jsxDEV } from "preact/jsx-dev-runtime"; export default function CardTitle({ children, classes, elementRef, ...htmlAttributes }) { return _jsxDEV("div", { ...htmlAttributes, className: classnames('grow text-lg text-brand font-semibold', classes), ref: downcastRef(elementRef), "data-component": "CardTitle", children: children }, void 0, false, { fileName: _jsxFileName, lineNumber: 24, columnNumber: 5 }, this); } //# sourceMappingURL=CardTitle.js.map