UNPKG

747 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 CarouselItem = /*#__PURE__*/React.forwardRef(({
8 // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
9 as: Component = 'div',
10 bsPrefix,
11 className,
12 ...props
13}, ref) => {
14 const finalClassName = classNames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
15 return /*#__PURE__*/_jsx(Component, {
16 ref: ref,
17 ...props,
18 className: finalClassName
19 });
20});
21CarouselItem.displayName = 'CarouselItem';
22export default CarouselItem;
\No newline at end of file