@dxos/react-ui
    Preparing search index...

    Type Alias StepsProps

    StepsProps: ThemedClassName<
        Omit<
            StepsPrimitive.RootProps,
            | "children"
            | "count"
            | "step"
            | "defaultStep"
            | "onStepChange"
            | "onSelect",
        >,
    > & {
        active?: number;
        duration?: number;
        error?: boolean;
        fraction?: number;
        indeterminate?: boolean;
        onSelect?: (step: { id: string; index: number }) => void;
        selected?: number;
        steps: number | Step[];
    }

    Type declaration

    • Optionalactive?: number

      Zero-based index of the stage in flight; absent means none has started, and a value at or past the last stage means the run is over.

    • Optionalduration?: number

      Milliseconds a line takes to fill, and so how long an advance is held back for it to arrive.

    • Optionalerror?: boolean

      The run stopped on the stage in flight; every stage it reached is drawn in the error colour.

    • Optionalfraction?: number

      How far through the stage in flight, 0..1, drawn on the line leaving it.

    • Optionalindeterminate?: boolean

      The stage in flight cannot be counted, so it spins rather than filling its line.

    • OptionalonSelect?: (step: { id: string; index: number }) => void

      Makes every stage a toggle button.

    • Optionalselected?: number

      Index of a stage the caller has singled out.

    • steps: number | Step[]

      The plan: a count when the stages are anonymous, or the stages themselves; every stage is drawn.