Skip to content

An open source design system that's fully customizable and agent ready

TypeScript
905 B
Raw Blame
// Copyright (c) Meta Platforms, Inc. and affiliates.

'use client';

import {Stepper, Step} from '@astryxdesign/core/Stepper';
import {Text} from '@astryxdesign/core/Text';

export default function StepShowcase() {
  // 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}}>
      <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>
  );
}