Carousel
Swipes and scrolls natively without JS. Autoplay pauses on hover and stops for good on focus or a press.
defaultProps of default
<Carousel label="Carousel features">
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Any component</h2><p>A slide can hold any component. This one is a side her…
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Sized to fit</h2><p>The track is as tall as its tallest slide, so nothing i…
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Controls below</h2><p>Arrows, counter and pips sit in the footer, clear of …
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Keyboard ready</h2><p>Focus the track and use the arrow keys, Home or End.<…
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
</Carousel>Any component
A slide can hold any component. This one is a side hero.

Sized to fit
The track is as tall as its tallest slide, so nothing is clipped and the frame never jumps.

Controls below
Arrows, counter and pips sit in the footer, clear of slide content.

Keyboard ready
Focus the track and use the arrow keys, Home or End.

autoplayanimatedProps of autoplay
<Carousel label="Carousel features, autoplay" tone="secondary" autoplay={4}>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Any component</h2><p>A slide can hold any component. This one is a side her…
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Sized to fit</h2><p>The track is as tall as its tallest slide, so nothing i…
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Controls below</h2><p>Arrows, counter and pips sit in the footer, clear of …
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Keyboard ready</h2><p>Focus the track and use the arrow keys, Home or End.<…
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
</Carousel>Any component
A slide can hold any component. This one is a side hero.

Sized to fit
The track is as tall as its tallest slide, so nothing is clipped and the frame never jumps.

Controls below
Arrows, counter and pips sit in the footer, clear of slide content.

Keyboard ready
Focus the track and use the arrow keys, Home or End.

manyProps of many
<Carousel label="Many slides">
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Slide 1</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Slide 2</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Slide 3</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Slide 4</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Slide 5</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Slide 6</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Slide 7</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Slide 8</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Slide 9</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Slide 10</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Slide 11</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Slide 12</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Slide 13</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Slide 14</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Slide 15</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Slide 16</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Slide 17</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Slide 18</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Slide 19</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Slide 20</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Slide 21</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Slide 22</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} side="right">
<h2>Slide 23</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
<CarouselItem>
<SideHero image={{ src: image("/_astro/test-pattern.CRwj5U5U.jpg"), alt: "A TV test pattern" }} side="left">
<h2>Slide 24</h2><p>One of many, to see how the pips hold up.</p>
<Button>Learn more</Button>
</SideHero>
</CarouselItem>
</Carousel>Slide 1
One of many, to see how the pips hold up.

Slide 2
One of many, to see how the pips hold up.

Slide 3
One of many, to see how the pips hold up.

Slide 4
One of many, to see how the pips hold up.

Slide 5
One of many, to see how the pips hold up.

Slide 6
One of many, to see how the pips hold up.

Slide 7
One of many, to see how the pips hold up.

Slide 8
One of many, to see how the pips hold up.

Slide 9
One of many, to see how the pips hold up.

Slide 10
One of many, to see how the pips hold up.

Slide 11
One of many, to see how the pips hold up.

Slide 12
One of many, to see how the pips hold up.

Slide 13
One of many, to see how the pips hold up.

Slide 14
One of many, to see how the pips hold up.

Slide 15
One of many, to see how the pips hold up.

Slide 16
One of many, to see how the pips hold up.

Slide 17
One of many, to see how the pips hold up.

Slide 18
One of many, to see how the pips hold up.

Slide 19
One of many, to see how the pips hold up.

Slide 20
One of many, to see how the pips hold up.

Slide 21
One of many, to see how the pips hold up.

Slide 22
One of many, to see how the pips hold up.

Slide 23
One of many, to see how the pips hold up.

Slide 24
One of many, to see how the pips hold up.
