Alok

Astryx Carousel

Navigation

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, Heading} from '@astryxdesign/core/Text';

const ITEMS = [
  {title: 'Design', body: 'Create wireframes and prototypes.'},
  {title: 'Develop', body: 'Build components and pages.'},
  {title: 'Test', body: 'Write tests and fix bugs.'},
  {title: 'Deploy', body: 'Ship to production.'},
  {title: 'Monitor', body: 'Track performance and errors.'},
];

export default function CarouselShowcase() {
  return (
    <div
      data-astryx-theme="neutral"
      data-theme="light"
      style={{colorScheme: 'light', display: 'contents'}}>
      <Carousel
        gap={2}
        hasSnap
        hasButtons={false}
        aria-label="Workflow steps"
        style={{maxWidth: 500}}>
        {ITEMS.map(item => (
          <Card key={item.title} padding={3} style={{minWidth: 200}}>
            <Stack direction="vertical" gap={1}>
              <Heading level={5}>{item.title}</Heading>
              <Text type="supporting" color="secondary">
                {item.body}
              </Text>
            </Stack>
          </Card>
        ))}
      </Carousel>
    </div>
  );
}

Dependencies

More by Alok

View all
  • Glossy Slider Call Button

    Glossy Slider Call Button

    25
  • Dot Graph Card

    Dot Graph Card

    22
  • Profile Menu Expander

    Profile Menu Expander

    4
  • Astryx Base Typeahead

    Astryx Base Typeahead

    2
  • Pixel Perfect Command Palette

    Pixel Perfect Command Palette

    2
  • Astryx Chat Composer Input

    Astryx Chat Composer Input

    1
  • Astryx Chat Composer Drawer

    Astryx Chat Composer Drawer

    1
  • Sticky Cascade Services & Timeline

    Sticky Cascade Services & Timeline

More in Navigation

View all
  • Sidebar

    Sidebar

    354
  • Oversized 404 Numeral

    Oversized 404 Numeral

    71
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    57
  • Pagination Ant

    Pagination Ant

    3
  • Breadcramb

    Breadcramb

    93
  • Navbar

    Navbar

    8
  • Footer

    Footer

    454
  • Outline Pagination

    Outline Pagination

    11