@cdr-kit/react-ui/Components/AccessStepper

<AccessStepper>

Designed wait-state UI for the 2-step pay→access flow. Derives step state from useAccessVault's status + an optional {collected, threshold} for the determinate partial-collection bar.
import { AccessStepper } from "@cdr-kit/react-ui"

Live preview

phase selector
  1. Subscribe & pay
    subscribe(uuid, periods, price)
  2. Collect validator partials
    threshold collection
    collected 6 / 10
  3. Decrypt locally
    key shares → plaintext
import { AccessStepper } from "@cdr-kit/react-ui";
import { useAccessVault } from "@cdr-kit/react";

function Stepper({ uuid }) {
const { status, progress } = useAccessVault(uuid);
return <AccessStepper status={status} progress={progress} withPay />;
}

Props

PropTypeDefaultDescription
statusrequired"idle" | "paying" | "collecting-partials" | "ready" | "error"Drives which step is active / done / errored.
progress{ collected: number; threshold: number }When provided, drives the determinate partials bar in the collecting step.
withPaybooleantrueInclude the leading Subscribe & pay step (for subscription-gated vaults).