About
Individual step within a Stepper. Renders a progress-bar segment, an indicator, and a label with optional description. Progress (completed/active/not-started) is derived from the parent Stepper's activeStep and this step's step index. Astryx by Meta. Source: https://astryx.atmeta.com/components/Step
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Step to your project and fits it to your theme.
Code
How Astryx Step 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 the MIT notice in astryx-step.tsx. */
import '@/components/ui/astryx-step-utils/astryx-preview.css';
import '@astryxdesign/theme-neutral/fonts.css';
import {useSyncExternalStore} from 'react';
import {Theme} from '@astryxdesign/core/theme';
import {neutralTheme} from '@astryxdesign/theme-neutral/built';
import {Stepper, Step} from '@/components/ui/astryx-step';
import {Text} from '@astryxdesign/core/Text';
function OfficialSample() {
// One Step, and every part it renders: the indicator, the label with its
// optional marker and trailing slot, and the description beneath. A Step is
// always wrapped in a Stepper — that is where it reads its progress from —
// so a single Step in a single Stepper is the smallest complete example.
return (
<div style={{width: 380, maxWidth: '100%'}}>
<Stepper activeStep={1} orientation="vertical">
<Step
step={1}
label="Connect a repository"
description="Astryx reads your build settings from the default branch"
endContent={<Text type="supporting">2 min</Text>}
isOptional
/>
</Stepper>
</div>
);
}
function readPreviewMode() {
const {classList} = document.documentElement;
return classList.contains('dark') ? 'dark' : 'light';
}
function subscribeToPreviewMode(callback: () => void) {
const observer = new MutationObserver(callback);
observer.observe(document.documentElement, {attributes: true, attributeFilter: ['class']});
return () => observer.disconnect();
}
export default function Demo() {
const mode = useSyncExternalStore(subscribeToPreviewMode, readPreviewMode, () => 'light' as const);
return (
<Theme theme={neutralTheme} mode={mode}>
<div className="astryx-demo">
<div className="astryx-demo-content" data-centered style={{maxWidth: 380}}>
<OfficialSample />
</div>
</div>
</Theme>
);
}







