UNPKG

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