Carousel
A plain, accessible slide carousel with previous/next buttons, pagination, arrow/Home/End keys, swipe or drag, optional autoplay that pauses on hover and focus, and one to four slides per view.
What it is for
Featured content, product or case-study slides, testimonials (give it a height or an aspect ratio).
Use it
1 · site.json
"effects": { "components": ["carousel"] }or on the command line
node ~/.claude/skills/sitewright/scripts/scaffold.mjs --config site.json --out ./my-site --components carousel2 · import it
import { Carousel } from '@/components/fx/ui';Files
components/fx/ui/Carousel.tsxcomponents/fx/ui/_t2.tscomponents/fx/ui/_galleries-data.tsxcomponents/fx/ui/_galleries-hooks.tscomponents/fx/ui/_galleries-ui.tsxui-carousel.cssstyles
Accessibility
- Keyboard. Components in the kit are written to be reached and used with the keyboard. Try it: press Tab inside the preview.
- Reduced motion. With
prefers-reduced-motionon, animation settles to its finished state at once. - Touch. Pointer-follow effects are skipped on touch screens; controls stay finger-sized.