Elements
Small controls such as Button, Image and Tag.
A labelled carousel region. Each child of the default slot is one slide. Slides scroll with native scroll snapping, so touch, trackpad and keyboard scrolling work without the script; the arrows move one page of slides and wrap back to the start at the end.
Small controls such as Button, Image and Tag.
Composed pieces such as Card, Dialog and Tabs.
Page parts such as Hero, Statement and Article.
Shared colour, type and spacing values.
Light, alternate, brand and dark bands.
A page for every piece, with a live preview.
label: accessible name for the carousel region (default "Carousel")perView: 1 (default), 2, 3, 4, auto. Multi-slide views show
1.25 slides on small screens, 2 from 40rem, and the full count from 64rem.
auto keeps each slide’s own widthgap: spacing scale step between slides, 1 to 10 (default 4)dots: adds one dot button per slide, marking the current oneoverlay: places the controls over the bottom of the slides in white, for
full-bleed slideshowsautoplay: advances one page at a time and shows a pause button. Pauses
while hovered or focused, and stays off under reduced motioninterval: autoplay delay in milliseconds (default 6000)<Carousel label="What's in Samla" perView="3" dots> {pieces.map((piece) => <Card title={piece.title} description={piece.description} />)}</Carousel>Small controls such as Button, Image and Tag.
Composed pieces such as Card, Dialog and Tabs.
Page parts such as Hero, Statement and Article.
Shared colour, type and spacing values.
Light, alternate, brand and dark bands.
A page for every piece, with a live preview.