4.2.0
CoreCarousel

Carousel API

Every prop of the 5 parts Carousel exports, generated from the package manifest.

import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from '@oceanic-hub/brand-system'
Layer
core — shadcn-derived primitives.
Exports
Carousel · CarouselContent · CarouselItem · CarouselNext · CarouselPrevioustypes: CarouselApi · CarouselOptions · CarouselPlugin · CarouselProps · UseCarouselParameters
Variants
  • orientation: horizontal | vertical
  • variant: default | destructive | ghost | link | outline | secondary
  • size: icon | icon-lg | icon-sm | lg | md | sm
  • variant: default | destructive | ghost | link | outline | secondary
  • size: icon | icon-lg | icon-sm | lg | md | sm
Contract
packages/brand-system/src/components/carousel.contract.test-d.ts
Demos
7 on the Carousel page — rendered live, hydrated
Source
packages/brand-system/src/components/carousel.tsx

Generated from manifest/component-manifest.json, so it cannot drift from the source. For what Carousel is for, how it composes and what it looks like, see Carousel.

React.HTMLAttributes<HTMLDivElement> & CarouselProps

Prop

Type

Also accepts everything from React.HTMLAttributes<HTMLDivElement>.

CarouselContent

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

CarouselItem

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

CarouselNext

ButtonProps

Prop

Type

Also accepts everything from React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants>.

CarouselPrevious

ButtonProps

Prop

Type

Also accepts everything from React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants>.

On this page