UNPKG

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