Skip to content

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

TypeScript
1.1 KB
Raw Blame
// Copyright (c) Meta Platforms, Inc. and affiliates.

'use client';

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

export default function StepContent() {
  // Anything passed as children renders below the description, indented to line
  // up with the label rather than the indicator. In a full flow you would gate
  // this on the step being active; here it is a single Step so the slot is
  // always shown.
  return (
    <div style={{width: 400}}>
      <Stepper activeStep={1} orientation="vertical">
        <Step
          step={1}
          label="Billing address"
          description="Used for invoices and tax calculation">
          <div style={{display: 'flex', flexDirection: 'column', gap: 12}}>
            <TextInput label="Street" placeholder="1 Hacker Way" value="" />
            <TextInput label="City" placeholder="Menlo Park" value="" />
            <div>
              <Button label="Save address" variant="primary" />
            </div>
          </div>
        </Step>
      </Stepper>
    </div>
  );
}