Calm motion: animations on this site only fade, with no movement
Poster row
A row of posters that scrolls, with arrow buttons and the keyboard
Shows a shelf of shows, films, or albums on a streaming home page. Stack many rows for many shelves.
Basic
Shows like this one
titlenames the row. The row is a section named by that title.itemsis a list of posters. Each poster has anid, atitle, animage, and anhref. It can also have ametaline.shapeistall(default, 2 by 3),wide(16 by 9), orsquare.- The row scrolls sideways and snaps to each poster. The ‹ and › buttons scroll by one width. Each button turns off at its end of the row.
- Each poster is one link, so Tab moves from poster to poster, and the row scrolls with the focus.
- Outside reduced motion, the scroll is smooth and a poster grows a little on hover.
- Change the words with
labelsor a label pack:previousandnext.
Usage
ts
import { BlessPosterRow } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
title* | string | — | |
items* | BlessPoster[] | — | |
shape | "wide" | "tall" | "square" | "tall" | the shape of the posters |
labels | Partial<{ previous: string; next: string; }> | — |