SwipeRow
A collection of cards that becomes one swipe row on phones, with previous and next buttons, a position counter and a hint, and a plain grid from the md breakpoint up. Use it for cards that would otherwise stack into a long column.
- SwipeRow
PreviewLink to the section Preview
Live in all three themes. Everything here is interactive.
Light theme, SwipeRow
The switch follows the width of the window: narrower than 48rem this is a swipe row, so view the gallery at 390 px to see the arrows.
Swipe for more
Dark theme, SwipeRow
The switch follows the width of the window: narrower than 48rem this is a swipe row, so view the gallery at 390 px to see the arrows.
Swipe for more
High contrast theme, SwipeRow
The switch follows the width of the window: narrower than 48rem this is a swipe row, so view the gallery at 390 px to see the arrows.
Swipe for more
UsageLink to the section Usage
import { SwipeRow } from '@skribly/ui/surfaces'<SwipeRow
label="Plans"
previousLabel="Previous plan"
nextLabel="Next plan"
hint="Swipe for more"
positionLabel={(current, total) => current + ' / ' + total}
columns={3}
>
<Card>…</Card>
<Card>…</Card>
</SwipeRow>Every label is a prop, so the app passes its own words in its own language. See no built-in text.
AccessibilityLink to the section Accessibility
- On phones the row is a focusable region named by label: Arrow Left and Right move one card, Home and End go to the ends.
- The buttons disable at each end and scroll one card; motion is smooth unless the system or the accessibility panel asks for less.
- The counter is decoration.
- From md up there is no region, tabindex, buttons or hint.
- Built to WCAG 2.2 AA as a target.
This demo runs through axe in all three themes on every test run. See what the tests check.