{
  "purpose": "Browse a finite sequence of labelled slides using real previous/next controls and the selected Embla API.",
  "avoid": "Avoid hiding mandatory sequential task steps.",
  "classification": "source-bound-reference-with-explicit-decisions",
  "basis": "Pinned React/primitive sources lead API, lifecycle and semantics; native visual observations and explicit reference decisions are mapped in figma/traceability.json.",
  "profile": "interactive-control/1",
  "profileRationale": "The family presents controls or navigation; static depictions do not establish an interactive contract.",
  "componentId": "shadcn:Carousel",
  "sourceRule": "Root props include opts:CarouselOptions, plugins:CarouselPlugin, orientation horizontal|vertical (defaulthorizontal), setApi(api) and native div props. useEmblaCarousel8.5.2 receives opts then an axis forced from orientation, so orientation wins over opts.axis. setApi receives the actual ready API, not a fabricated index event. Internal select/reInit observations derive canScrollPrev/Next; Previous/Next compose Button with default outline/icon-sm and readable hidden Previous slide/Next slide labels. Their disabled and onClick props are applied before {...props}, so callers can deliberately override them. Item is group with roledescription=slide; Root is region roledescription=carousel and requires caller context name. Content has an outer overflow viewport and inner flex track; className styles the track. Embla supplies drag, focus/resize behavior and snapping. No autoplay is enabled unless a plugin explicitly adds it; there is no built-in pause button, pagination or live announcement. This reference chooses three static slides, nonlooping default options, no plugin and external status from actual api.select subscriptions.",
  "keyboardAndFocus": "Next/Previous use native Button Enter/Space and are disabled at the respective nonlooping boundary. Root onKeyDownCapture intercepts Left to scrollPrev and Right to scrollNext even in vertical layout; it does not implement Up/Down and does not check editable descendant targets. This reference keeps editable fields outside the carousel. Tab follows actual child/Button order; no slide roving tabindex or focus jump is invented. Caller may override the capture handler via native props. Escape does not reset the selected slide. Each slide gets an explicit positional/task label in this reference.",
  "contentAlternative": "Full code text/native input value/labelled slide text remains available without icon, fake caret, motion or hover. Caller owns exact help/error/recovery wording.",
  "updatesAndDescendants": "Root props include opts:CarouselOptions, plugins:CarouselPlugin, orientation horizontal|vertical (defaulthorizontal), setApi(api) and native div props. useEmblaCarousel8.5.2 receives opts then an axis forced from orientation, so orientation wins over opts.axis. setApi receives the actual ready API, not a fabricated index event. Internal select/reInit observations derive canScrollPrev/Next; Previous/Next compose Button with default outline/icon-sm and readable hidden Previous slide/Next slide labels. Their disabled and onClick props are applied before {...props}, so callers can deliberately override them. Item is group with roledescription=slide; Root is region roledescription=carousel and requires caller context name. Content has an outer overflow viewport and inner flex track; className styles the track. Embla supplies drag, focus/resize behavior and snapping. No autoplay is enabled unless a plugin explicitly adds it; there is no built-in pause button, pagination or live announcement. This reference chooses three static slides, nonlooping default options, no plugin and external status from actual api.select subscriptions. Next/Previous use native Button Enter/Space and are disabled at the respective nonlooping boundary. Root onKeyDownCapture intercepts Left to scrollPrev and Right to scrollNext even in vertical layout; it does not implement Up/Down and does not check editable descendant targets. This reference keeps editable fields outside the carousel. Tab follows actual child/Button order; no slide roving tabindex or focus jump is invented. Caller may override the capture handler via native props. Escape does not reset the selected slide. Each slide gets an explicit positional/task label in this reference.",
  "sourceCommit": "45bbf9ba23c9c0f63d38887947e5fb06f59c7da3",
  "sourceFiles": [
    "sources/shadcn/apps/v4/registry/bases/base/ui/carousel.tsx.source",
    "sources/shadcn/apps/v4/content/docs/components/base/carousel.mdx.source",
    "sources/shadcn/apps/v4/registry/bases/base/examples/carousel-example.tsx.source"
  ],
  "sourcePackages": [
    "embla-carousel-react@8.5.2",
    "embla-carousel@8.5.2"
  ],
  "referenceDecision": "Concrete content, labels, OTP digit policy, carousel positional/live text and clipboard fallback instructions are explicit caller composition; source-specific limitations are retained.",
  "visualContract": {
    "layoutPolicy": "Actual source viewport/inner-track/slide identity remains distinct; Embla owns track transform and snap positions. Source 16px slide gutters map to native selected horizontal specimen 165px height and 28px full-round controls. Reference chooses one complete slide per snap; native multi-card samples remain evidence, not forced runtime widths. Controls are placed in reserved 40px internal lanes so320px views retain both navigation controls; this explicitly differs from source external 48px offsets. Vertical reference uses 240px constrained viewport and top/bottom control lanes; orientation is forwarded to Embla axis, while caller data-orientation binds visual CSS because wrapper emits no orientation attribute. Actual source capture still intercepts Left/Right in both orientations, not Up/Down, and does not exclude editable descendants; chosen slides contain no editable controls. RTL passes Embla opts.direction and HTML dir; Left still invokes scrollPrev and Right scrollNext per pinned wrapper, rather than invented physical-key reversal. Button source default outline/icon-sm is retained with native 28px circle override. External status is caller setApi select/reInit state, not an upstream onIndexChange API. No autoplay, fake slide tabindex, automatic focus movement or undocumented pause behavior.",
    "parts": "component.json#/partBindings",
    "tokenBindings": "component.json#/visualContract/tokens",
    "sourceEvidence": "figma/traceability.json"
  }
}
