{
  "$schema": "https://registry.ui.frontic.com/item.schema.json",
  "title": "Carousel",
  "description": "Scrolls slides sideways or up and down, with previous and next buttons, dots that jump to a slide and a bar that shows how far the shopper has scrolled.",
  "components": {
    "Carousel": "Groups all parts of the carousel, which scrolls through items sideways.",
    "CarouselContent": "Holds the slides of the carousel in a scrollable row.",
    "CarouselDots": "Shows one dot per slide and lets the user jump to a slide.",
    "CarouselItem": "Holds the content of one slide in the carousel.",
    "CarouselNext": "Lets the user scroll the carousel to the next slide.",
    "CarouselPrevious": "Lets the user scroll the carousel to the previous slide.",
    "CarouselProgress": "Shows how far the user has scrolled through the carousel."
  },
  "recipes": {
    "carousel": {
      "composes": ["focus-ring"]
    },
    "carousel-content": {
      "base": {
        "display": "flex"
      },
      "variants": {
        "orientation": {
          "horizontal": {
            "bleedStart": "{spacing.4}"
          },
          "vertical": {
            "flexDirection": "column",
            "bleedTop": "{spacing.4}"
          }
        }
      },
      "defaults": {
        "orientation": "horizontal"
      }
    },
    "carousel-dot": {
      "base": {
        "extends": "track",
        "backgroundColor": "{colors.muted-foreground}",
        "rounded": "{rounded.none}",
        "height": "{spacing.0.5}",
        "width": "{spacing.6}",
        "selected": {
          "backgroundColor": "{colors.foreground}"
        }
      }
    },
    "carousel-dots": {
      "base": {
        "display": "flex"
      }
    },
    "carousel-item": {
      "base": {
        "minWidth": "{spacing.0}",
        "flexShrink": "0",
        "flexGrow": "0"
      },
      "variants": {
        "orientation": {
          "horizontal": {
            "paddingStart": "{spacing.4}",
            "flexBasis": "full"
          },
          "vertical": {
            "paddingTop": "{spacing.4}",
            "flexBasis": "full"
          }
        }
      },
      "defaults": {
        "orientation": "horizontal"
      }
    },
    "carousel-progress": {
      "base": {
        "marginTop": "{spacing.3}",
        "extends": "track",
        "backgroundColor": "{colors.muted/30}",
        "rounded": "{rounded.sm}",
        "height": "{spacing.1}",
        "width": "full"
      }
    },
    "carousel-progress-indicator": {
      "base": {
        "extends": "track-fill",
        "backgroundColor": "{colors.foreground}"
      }
    }
  }
}
