#965
Several per view
Five plan cards shown three at a time in a looping carousel.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Several per view" pattern (@codeatlasdev/ui demo #965, display/carousel) in my app.
Call get_demo({ ids: ["#965"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Card rows that overflow: pricing tiers, related products, team members.
Keep these library parts, with the props and tokens the demo uses:
- Carousel, CarouselItem from "@codeatlasdev/ui"
Behaviour to keep:
- `<Carousel label="Plans" perView={3} loop>` over five names
- Each card is `<CarouselItem><div class="card">{name}</div></CarouselItem>`
- `cards` is `['Starter', 'Team', 'Business', 'Enterprise', 'Partner']`
Reduced motion: the demo handles it; keep that branch.
Keyboard: operable; keep the focus order and key handling.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- Carousel
@codeatlasdev/ui - CarouselItem
@codeatlasdev/ui
How it is built
- `<Carousel label="Plans" perView={3} loop>` over five names
- Each card is `<CarouselItem><div class="card">{name}</div></CarouselItem>`
- `cards` is `['Starter', 'Team', 'Business', 'Enterprise', 'Partner']`
Related
Loading source.