UNPKG

react-bootstrap

Version:

Bootstrap 5 components built with React

24 lines (23 loc) 721 B
"use client"; import * as React from 'react'; import classNames from 'classnames'; import { useBootstrapPrefix } from './ThemeProvider'; import divWithClassName from './divWithClassName'; import { jsx as _jsx } from "react/jsx-runtime"; const DivStyledAsH4 = divWithClassName('h4'); DivStyledAsH4.displayName = 'DivStyledAsH4'; const AlertHeading = /*#__PURE__*/React.forwardRef(({ className, bsPrefix, as: Component = DivStyledAsH4, ...props }, ref) => { bsPrefix = useBootstrapPrefix(bsPrefix, 'alert-heading'); return /*#__PURE__*/_jsx(Component, { ref: ref, className: classNames(className, bsPrefix), ...props }); }); AlertHeading.displayName = 'AlertHeading'; export default AlertHeading;