About
An Astryx horizontal carousel for browsing overflowing card grids, image galleries, product lists, and related items.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Carousel to your project and fits it to your theme.
Code
How Astryx Carousel is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
import {Carousel} from '@/components/ui/astryx-carousel';
import {Card} from '@astryxdesign/core/Card';
import {Stack} from '@astryxdesign/core/Layout';
import {Text} from '@astryxdesign/core/Text';
const FEATURES = [
{
title: 'Design System',
desc: 'Tokens, components, and patterns',
},
{
title: 'Documentation',
desc: 'API reference and usage guides',
},
{
title: 'Sandbox',
desc: 'Visual testing and previews',
},
{
title: 'Library',
desc: 'Component and hook information',
},
{
title: 'Contributing',
desc: 'Open source development',
},
];
function CarouselCards() {
return (
<Stack direction="vertical" gap={3} style={{maxWidth: 520, padding: 8}}>
<Text type="body" weight="bold">
Browse features
</Text>
<Carousel gap={2} hasSnap aria-label="Feature cards">
{FEATURES.map(item => (
<Card key={item.title} width={200} minHeight={100}>
<Stack direction="vertical" gap={1}>
<Text type="body" weight="bold">
{item.title}
</Text>
<Text type="supporting" color="secondary">
{item.desc}
</Text>
</Stack>
</Card>
))}
</Carousel>
</Stack>
);
}
export default function CarouselCardsDemo() {
return (
<div
data-astryx-theme="neutral"
data-theme="light"
style={{colorScheme: 'light', display: 'contents'}}>
<CarouselCards />
</div>
);
}















