tuil
ReferenceComponentsProject initializer

InitWizard

InitWizard component API, behavior, and executable example.

View rawEdit

Loading executable example…

API and events

A complete source-owned application block combining forms, navigation, dialogs, operations, themes, and workflow state into a project creator.

export function InitWizard(props: InitWizardProps): ReactNode;

Props, functions, and events

MemberTypeRequiredDescriptionRelated types
initialNamestringYesThe initialName member uses the string contract.
onComplete(answers: InitAnswers) => voidYesThe onComplete member uses the (answers: InitAnswers) => void contract.InitAnswers
onCancel() => voidYesThe onCancel member uses the () => void contract.

onComplete returns validated answers and onCancel reports abandonment.

Callback props run after the documented input is accepted. Callbacks are not cancellable unless their return type or description states otherwise.

Interaction and capabilities

The guided flow validates names, template choice, features, confirmation, cancellation, and capability-aware static fallbacks.

The published manifest records keyboard, focus, pointer, theme, terminal, semantic, event, and dependency requirements.

Complete import

import { InitWizard } from "@/components/tuil/blocks/init-wizard";

On this page