UNPKG

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