react-bootstrap
Version:
Bootstrap 5 components built with React
21 lines (20 loc) • 582 B
JavaScript
"use client";
import * as React from 'react';
import classNames from 'classnames';
import { useBootstrapPrefix } from './ThemeProvider';
import { jsx as _jsx } from "react/jsx-runtime";
const CardImgOverlay = /*#__PURE__*/React.forwardRef(({
className,
bsPrefix,
as: Component = 'div',
...props
}, ref) => {
bsPrefix = useBootstrapPrefix(bsPrefix, 'card-img-overlay');
return /*#__PURE__*/_jsx(Component, {
ref: ref,
className: classNames(className, bsPrefix),
...props
});
});
CardImgOverlay.displayName = 'CardImgOverlay';
export default CardImgOverlay;