design-react-kit
Version:
Componenti React per Bootstrap 5
10 lines • 482 B
JavaScript
import React from 'react';
import classNames from 'classnames';
export const CardTagsHeader = ({ date, children, className, tag = 'div', testId, ...attributes }) => {
const Tag = tag;
const classes = classNames('head-tags', className);
return (React.createElement(Tag, { className: classes, ...attributes, "data-testid": testId },
children,
date && React.createElement("span", { className: 'data' }, date)));
};
//# sourceMappingURL=CardTagsHeader.js.map