21 lines
549 B
JavaScript
Executable File
21 lines
549 B
JavaScript
Executable File
"use client";
|
|
|
|
import * as React from 'react';
|
|
import classNames from 'classnames';
|
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
const CardText = /*#__PURE__*/React.forwardRef(({
|
|
className,
|
|
bsPrefix,
|
|
as: Component = 'p',
|
|
...props
|
|
}, ref) => {
|
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'card-text');
|
|
return /*#__PURE__*/_jsx(Component, {
|
|
ref: ref,
|
|
className: classNames(className, bsPrefix),
|
|
...props
|
|
});
|
|
});
|
|
CardText.displayName = 'CardText';
|
|
export default CardText; |