UNPKG

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