UNPKG

ivt

Version:

Ivt Components Library

26 lines (23 loc) 1.47 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react'; import * as React from 'react'; import { Button } from '../button/index.js'; import 'class-variance-authority/types'; import 'class-variance-authority'; type CarouselApi = UseEmblaCarouselType[1]; type UseCarouselParameters = Parameters<typeof useEmblaCarousel>; type CarouselOptions = UseCarouselParameters[0]; type CarouselPlugin = UseCarouselParameters[1]; type CarouselProps = { opts?: CarouselOptions; plugins?: CarouselPlugin; orientation?: "horizontal" | "vertical"; setApi?: (api: CarouselApi) => void; }; declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps): react_jsx_runtime.JSX.Element; declare function CarouselContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function CarouselItem({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element; declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element; export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious }; export type { CarouselApi };