UNPKG

661 BJavaScriptView Raw
1"use client";
2
3import * as React from 'react';
4import classNames from 'classnames';
5import { useBootstrapPrefix } from './ThemeProvider';
6import divWithClassName from './divWithClassName';
7import { jsx as _jsx } from "react/jsx-runtime";
8const DivStyledAsH5 = divWithClassName('h5');
9const CardTitle = /*#__PURE__*/React.forwardRef(({
10 className,
11 bsPrefix,
12 as: Component = DivStyledAsH5,
13 ...props
14}, ref) => {
15 bsPrefix = useBootstrapPrefix(bsPrefix, 'card-title');
16 return /*#__PURE__*/_jsx(Component, {
17 ref: ref,
18 className: classNames(className, bsPrefix),
19 ...props
20 });
21});
22CardTitle.displayName = 'CardTitle';
23export default CardTitle;
\No newline at end of file