{
  "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.",
  "referenceComposition": "<div data-slot=\"carousel\" role=\"region\" aria-roledescription=\"carousel\" aria-label=\"Report previews\" data-orientation=\"horizontal\" dir=\"ltr\"><div data-slot=\"carousel-content\"><div><div data-slot=\"carousel-item\" role=\"group\" aria-roledescription=\"slide\" aria-label=\"1 of 3\"><article data-part=\"carousel-slide\"><h3>Summary report preview</h3><p>Summary information</p></article></div><div data-slot=\"carousel-item\" role=\"group\" aria-roledescription=\"slide\" aria-label=\"2 of 3\"><article data-part=\"carousel-slide\"><h3>Revenue report preview</h3><p>Revenue information</p></article></div><div data-slot=\"carousel-item\" role=\"group\" aria-roledescription=\"slide\" aria-label=\"3 of 3\"><article data-part=\"carousel-slide\"><h3>Costs report preview</h3><p>Costs information</p></article></div></div></div><button type=\"button\" data-slot=\"carousel-previous\" class=\"cn-button cn-button-variant-outline cn-button-size-icon-sm\" disabled><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M14 7l-5 5 5 5\" fill=\"none\" stroke=\"currentColor\"/></svg><span class=\"sr-only\">Previous slide</span></button><button type=\"button\" data-slot=\"carousel-next\" class=\"cn-button cn-button-variant-outline cn-button-size-icon-sm\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M10 7l5 5-5 5\" fill=\"none\" stroke=\"currentColor\"/></svg><span class=\"sr-only\">Next slide</span></button></div><p data-part=\"carousel-status\" role=\"status\">Slide 1 of 3</p>",
  "projectionState": "Ready API/nonlooping first slide for Carousel; raw SSR disables both buttons until Embla initializes. Other projections show their stated native content/value.",
  "protocol": "SCXML projects observed actual source/native transactions. Public callback names/payloads are real; _effect.* entries identify internal browser/primitive effects. It does not dispatch extra DOM events. Caller-controlled props remain authoritative, source result observations determine completion. Normal React target runs pinned original wrappers, not semantic HTML/CSS alone.",
  "semanticParts": {
    "root": {
      "kind": "element",
      "selector": "[data-slot=\"carousel\"]",
      "description": "Named source region; orientation data attribute is an explicit caller visual binding."
    },
    "viewport": {
      "kind": "element",
      "selector": "[data-slot=\"carousel-content\"]",
      "description": "Actual overflow viewport receives carouselRef; className belongs inner track."
    },
    "track": {
      "kind": "element",
      "selector": "[data-slot=\"carousel-content\"]>div",
      "description": "Actual private Embla flex track; primitive inline transform remains authoritative."
    },
    "item": {
      "kind": "element",
      "selector": "[data-slot=\"carousel-item\"]",
      "description": "Actual slide group/roledescription; caller provides position/content labels."
    },
    "slide": {
      "kind": "element",
      "selector": "[data-part=\"carousel-slide\"]",
      "description": "Chosen content Card-like surface, intrinsic text and min extent."
    },
    "previous": {
      "kind": "element",
      "selector": "[data-slot=\"carousel-previous\"]",
      "description": "Actual Button delegation, disabled at nonlooping previous boundary."
    },
    "next": {
      "kind": "element",
      "selector": "[data-slot=\"carousel-next\"]",
      "description": "Actual Button delegation, disabled at nonlooping next boundary."
    },
    "status": {
      "kind": "element",
      "selector": "[data-part=\"carousel-status\"]",
      "description": "External caller status from actual setApi select/reInit subscription."
    }
  },
  "visualStateMapping": {
    "orientation": {
      "prop": "orientation",
      "callerAttribute": "data-orientation",
      "values": [
        "horizontal",
        "vertical"
      ]
    },
    "direction": {
      "props": [
        "dir",
        "opts.direction"
      ],
      "values": [
        "ltr",
        "rtl"
      ]
    },
    "boundary": {
      "source": "Embla canScrollPrev/canScrollNext",
      "nativeAttribute": "disabled"
    }
  }
}
