Carousel with custom spacing
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: A pair of square photos in view with the slide gutter cut from the default 16px to 4px
When to use
- Photo galleries and featured slides shown one at a time, moved by swipe, arrow buttons or a timer
- Rows or columns of cards with several in view, sized per breakpoint or peeking at the next one
- Media viewers where a thumbnail strip or a row of dots tracks the current slide and jumps to any one
When not to use
- A rotating set of customer testimonials with star ratings and avatars: use the Review blocks
- A shop page pairing a photo gallery with a buy box and size and color pickers: use the Product Detail blocks
- A storefront section of shop collections with hover browse buttons: use the Category Card blocks
Agent notes
- The gutter is the negative left margin on
CarouselContentmatched by the same left padding on eachCarouselItem; keep the 2 values equal when you retune it - Every slide is a
picsum.photosplaceholder built withArray.from; map your own images and alt text from a real array - Where
CarouselPreviousandCarouselNextare placed, they sit 3rem outside the slides at either end, so leave room or move them throughclassName Carouselreacts only toArrowLeftandArrowRight, vertical ones included, and only while focus sits on a control inside it
Third-party API docs
- Embla Carousel v8: API reference, docs, through shadcn Carousel
https://reui.io/components/carousel/c-carousel-7.mdget_example("c-carousel-7")npx shadcn@latest add @reui/c-carousel-7About Shadcn Carousel Custom Spacing
Carousel with custom spacing. Built by composing Card, Carousel. A free, open source shadcn carousel example you can install with npx shadcn@latest add @reui/c-carousel-7 and edit as your own code.
What You Can Build With Shadcn Carousel Custom Spacing
- Composes Card, Carousel, so it drops into any project already using those components.
- Install it with the shadcn CLI: npx shadcn@latest add @reui/c-carousel-7
- Open source and free, with the full source on this page to copy or adapt.
More Shadcn Carousel Examples
- Basic Basic carousel with single item
- Vertical Vertical carousel orientation
- Multiple Items Carousel with multiple items visible
- Responsive Basis Carousel with responsive basis
- Autoplay Carousel with autoplay plugin
- Centered Alignment Carousel with centered slide alignment
- Image Overlays Carousel with images and overlays
- Thumbnail Strip Carousel with thumbnail navigation
- Overlay Thumbnails Carousel with overlay thumbnail navigation
- Dots Navigation Carousel with dots navigation and content overlays
Related Shadcn Component Categories
Nested multi-level selection with drill-down navigation, breadcrumbs, search and custom rows.
Open-source shadcn chart components for analytics dashboards, KPI tracking, and reports.
Open-source shadcn checkbox components for multi-select forms, settings preferences, and table selection.
Open-source shadcn code block components with Shiki syntax highlighting for AI chat, streaming agent output, diff review, and documentation.
Open-source shadcn collapsible components for expandable sections, detail rows, and progressive disclosure.
Open-source shadcn color picker components for brand settings, theme editors, label colors, and design tools.
Frequently Asked Questions
When should I use Shadcn Carousel Custom Spacing?
Use it for a pair of square photos in view with the slide gutter cut from the default 16px to 4px.
Shadcn Carousel as a whole fits:
- Photo galleries and featured slides shown one at a time, moved by swipe, arrow buttons or a timer
- Rows or columns of cards with several in view, sized per breakpoint or peeking at the next one
- Media viewers where a thumbnail strip or a row of dots tracks the current slide and jumps to any one
For a rotating set of customer testimonials with star ratings and avatars, use the Review blocks. For a shop page pairing a photo gallery with a buy box and size and color pickers, use the Product Detail blocks. For a storefront section of shop collections with hover browse buttons, use the Category Card blocks.
How do I install Shadcn Carousel Custom Spacing?
Is Shadcn Carousel Custom Spacing free to use?
Which components does Shadcn Carousel Custom Spacing use?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.