Skip to content

Component gallery

  1. Showcase
  2. Carousel

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Display

ThemeT
Mode
Mode
M
Style
Style
Y
Spacing
Spacing
Radius
Radius
Font size
Font size
Compare
Compare
Effects
S

ShortcutsAlt+Shift+key

Components

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Showcase · 4 of 6

Carousel

Swipes and scrolls natively without JS. Autoplay pauses on hover and stops for good on focus or a press.

packages/ui/src/astro/blocks/carousel/carousel.astro3 stories

Preview settings
Width
Preview width
Stage
Stage
default
Props 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>
Open carousel/default on its own

Any component

A slide can hold any component. This one is a side hero.

Greg Heffley

Sized to fit

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

A TV test pattern

Controls below

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

Greg Heffley

Keyboard ready

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

A TV test pattern

01/

autoplayanimated
Props 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>
Open carousel/autoplay on its own

Any component

A slide can hold any component. This one is a side hero.

Greg Heffley

Sized to fit

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

A TV test pattern

Controls below

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

Greg Heffley

Keyboard ready

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

A TV test pattern

01/

many
Props 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>
Open carousel/many on its own

Slide 1

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

Greg Heffley

Slide 2

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

A TV test pattern

Slide 3

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

Greg Heffley

Slide 4

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

A TV test pattern

Slide 5

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

Greg Heffley

Slide 6

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

A TV test pattern

Slide 7

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

Greg Heffley

Slide 8

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

A TV test pattern

Slide 9

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

Greg Heffley

Slide 10

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

A TV test pattern

Slide 11

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

Greg Heffley

Slide 12

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

A TV test pattern

Slide 13

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

Greg Heffley

Slide 14

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

A TV test pattern

Slide 15

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

Greg Heffley

Slide 16

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

A TV test pattern

Slide 17

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

Greg Heffley

Slide 18

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

A TV test pattern

Slide 19

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

Greg Heffley

Slide 20

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

A TV test pattern

Slide 21

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

Greg Heffley

Slide 22

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

A TV test pattern

Slide 23

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

Greg Heffley

Slide 24

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

A TV test pattern

01/

Previous88x31sNextBlueprint frames