pd-components playground
The switch is a container query — it watches the dashed box, never the
viewport. Drag the box's corner handle (or use the sliders) and watch the same markup flip
between a wrapping grid and a one-row snap carousel. The component ships no layout: the
whole switch is the CSS shown below, updated live as you move the breakpoint.
The sample cards use theme-level subgrid rows so media, titles, and descriptions
remain aligned in both modes.
Full documentation ›
No ResizeObserver, no breakpoint attribute, no JS bridge — the component only pages the
scroller (--pd-prev/--pd-next, auto-wired) and publishes
data-at-start/data-at-end + aria-disabled.
Everything below is plain theme CSS; this page merely rewrites the breakpoint number as
you drag the slider.