Wizard
Wizard + Step present a stepped create/edit flow with Previous / Next controls. Layout matches Filament’s wizard: horizontal step rail by default, or vertical beside the panels.
import { Wizard, Step, TextInput } from '@shamar/core'
Wizard.make([ Step.make('Identity').icon('user').schema([ TextInput.make('name').required(), ]), Step.make('Details').description('Optional extras').schema([ TextInput.make('notes'), ]),])
// Vertical step listWizard.make() .vertical() .steps([ Step.make('Account').schema([/* … */]), Step.make('Confirm').schema([/* … */]), ])Wizard
| Method | Description |
|---|---|
Wizard.make(steps?) | Optional initial Step list. |
.steps([...Step]) | Replace step children. |
.vertical(bool?) | Step indicators beside panels (default false = horizontal). |
.card(bool) | Card chrome (default true). |
Step
| Method | Description |
|---|---|
Step.make(title) | Step label in the indicator list. |
.icon(name) | Optional step icon (when rendered by the host). |
.description(text) | Shown above the step body. |
.columns(n) / .schema([...]) | Step body layout. |