createStep API
createSingle with bounded or circular navigation. Built for wizards, multi-step forms, and onboarding flows.Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| createStep | Selection |
| createSingle | Selection |
| Step | Providers |
Functions
createStep
(_options?: StepOptions) => RCreates a new step instance with navigation through items.
Extends createSingle with first(), last(), next(), prev(), and step(count) methods
for sequential navigation. Supports both circular (wrapping) and bounded (stopping at edges) modes.
Options
disabled
MaybeRefOrGetter<boolean> | undefinedDisabled state for the entire model instance
Default: false
multiple
MaybeRefOrGetter<boolean> | undefinedAllow multiple tickets to be selected simultaneously
Default: false
mandatory
MaybeRefOrGetter<boolean | "force"> | undefinedControls mandatory selection behavior:
- false (default): No mandatory selection enforcement
- true: Prevents deselecting the last selected item
- 'force': Automatically selects the first non-disabled item on registration
circular
boolean | undefinedEnable circular navigation (wrapping at boundaries). - true: Navigation wraps around (carousel behavior) - false: Navigation stops at boundaries (pagination behavior)
Default: false
Properties
selectedValues
ComputedRef<Set<E["value"] extends Ref<infer U, infer U> ? U : E["value"]>>Computed Set of selected ticket values
selectedId
Readonly<Ref<ID | undefined, ID | undefined>>selectedIndex
Readonly<Ref<number, number>>selectedItem
Readonly<Ref<E | undefined, E | undefined>>selectedValue
Readonly<Ref<E["value"] | undefined, E["value"] | undefined>>Methods
seek
(direction?: "first" | "last", from?: number, predicate?: (ticket) => boolean) => E | undefinedSeek for a ticket based on direction and optional predicate
on
<K extends Extensible<RegistryEventName>>(event: K, cb: RegistryEventCallback<E, K>) => voidListen for registry events
off
<K extends Extensible<RegistryEventName>>(event: K, cb: RegistryEventCallback<E, K>) => voidStop listening for registry events
emit
<K extends Extensible<RegistryEventName>>(event: K, data: EventPayload<E, K>) => voidEmit an event with data
offboard
(ids: ID[]) => Partial<Z>[]Offboard multiple tickets at once, returning the input shapes that were removed.
batch
<R>(fn: () => R) => RExecute operations in a batch, deferring cache invalidation and event emission until complete