UNPKG

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