About
Container component that manages step state and renders steps in horizontal or vertical orientation as an ordered list. Astryx by Meta. Source: https://astryx.atmeta.com/components/Stepper
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Stepper to your project and fits it to your theme.
Code
How Astryx Stepper is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
/* Copyright (c) 2026 Meta Platforms, Inc. See MIT notice in astryx-stepper.tsx. */
import '@/components/ui/astryx-stepper-utils/astryx-preview.css';
import {useState} from 'react';
import {Stepper, Step} from '@/components/ui/astryx-stepper';
function StepperShowcase() {
const [active, setActive] = useState(2);
return (
<div style={{width: '100%', maxWidth: 640}}>
<Stepper
activeStep={active}
orientation="horizontal"
onStepClick={setActive}>
<Step step={0} label="Cart" />
<Step step={1} label="Shipping" />
<Step step={2} label="Payment" />
<Step step={3} label="Review" />
<Step step={4} label="Confirm" />
</Stepper>
</div>
);
}
export default function Demo() {
return (
<div className="astryx-demo" data-astryx-theme="neutral" data-theme="light">
<div className="astryx-demo-content" style={{maxWidth: 640}}>
<StepperShowcase />
</div>
</div>
);
}















