tuil
ReferenceComponentsWorkflow UI

WorkflowProps

WorkflowProps component contract.

View rawEdit

Type

export interface WorkflowProps<TState>
  extends SlottedComponentProps<WorkflowSlots> {
  readonly id?: string;
  readonly workflow: WorkflowRunner<TState>;
  readonly autoStart?: boolean;
  readonly children?: ReactNode;
}

Members

MemberTypeRequiredDescriptionRelated types
idstring | undefinedNoThe id member uses the string | undefined contract.
workflowWorkflowRunner<TState>YesThe workflow member uses the WorkflowRunner<TState> contract.WorkflowRunner
autoStartboolean | undefinedNoThe autoStart member uses the boolean | undefined contract.
childrenReactNodeNoThe children member uses the ReactNode contract.
slotsPartial<SlotComponents<&#123; root: import("ink").BoxProps; content: import("ink").BoxProps; &#125;>> | undefinedNoThe slots member uses the Partial<SlotComponents<&#123; root: import("ink").BoxProps; content: import("ink").BoxProps; &#125;>> | undefined contract.BoxProps, SlotComponents
slotPropsPartial<SlotProps<&#123; root: import("ink").BoxProps; content: import("ink").BoxProps; &#125;, object>> | undefinedNoThe slotProps member uses the Partial<SlotProps<&#123; root: import("ink").BoxProps; content: import("ink").BoxProps; &#125;, object>> | undefined contract.BoxProps, SlotProps
unstyledboolean | undefinedNoThe unstyled member uses the boolean | undefined contract.
variantstring | undefinedNoThe variant member uses the string | undefined contract.
size"sm" | "md" | "lg" | undefinedNoThe size member uses the "sm" | "md" | "lg" | undefined contract.

Source

View the secondary source reference

On this page