UNPKG

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