Scoped
Using the Scoped component to share stepper state across child components
The Scoped
component acts as a provider, allowing you to synchronize stepper state via useStepper
across child components.
Basic Usage
Use Scoped
only when child components need access to stepper state. Otherwise, use the composable directly in your component.
API Reference
Name | Type | Description | Required |
---|---|---|---|
initialStep | string | ID of the initial step to display. | No |
Nested Scopes
You can nest multiple scopes for more complex stepper hierarchies:
This structure allows for independent control of global and local stepper states.
Edit on GitHub
Last updated on