UNPKG

676 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 DivStyledAsH6 = divWithClassName('h6');
9const CardSubtitle = /*#__PURE__*/React.forwardRef(({
10 className,
11 bsPrefix,
12 as: Component = DivStyledAsH6,
13 ...props
14}, ref) => {
15 bsPrefix = useBootstrapPrefix(bsPrefix, 'card-subtitle');
16 return /*#__PURE__*/_jsx(Component, {
17 ref: ref,
18 className: classNames(className, bsPrefix),
19 ...props
20 });
21});
22CardSubtitle.displayName = 'CardSubtitle';
23export default CardSubtitle;
\No newline at end of file