-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from damianricobelli/damian/update-package-json
chore: update package json
- Loading branch information
Showing
5 changed files
with
135 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"docs": patch | ||
"@stepperize/react": patch | ||
"@stepperize/vue": major | ||
--- | ||
|
||
chore: update package json |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<p align="center"> | ||
<img src="https://stepperize.vercel.app/banner.png" alt="Stepperize Logo" /> | ||
</p> | ||
|
||
[![Build Size](https://img.shields.io/bundlephobia/minzip/@stepperize/vue@latest?label=bundle%20size&style=flat&colorA=000000&colorB=000000)](https://bundlephobia.com/result?p=@stepperize/vue@latest) | ||
[![Version](https://img.shields.io/npm/v/@stepperize/vue?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@stepperize/vue) | ||
[![Downloads](https://img.shields.io/npm/dt/@stepperize/vue.svg?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@stepperize/vue) | ||
|
||
A library for creating step-by-step workflows in your apps | ||
|
||
- 🚀 Fast and efficient | ||
- 🔥 Powerful and flexible | ||
- 📦 Lightweight (< 1kB gzipped) | ||
- 🪄 Fully typesafe | ||
- 🔗 Composable architecture | ||
- 🎨 Unstyled for maximum customization | ||
|
||
## Installation | ||
|
||
```bash | ||
npm install @stepperize/vue | ||
``` | ||
|
||
## Quick Start | ||
|
||
1. Import the constructor: | ||
|
||
```tsx | ||
import { defineStepper } from "@stepperize/vue"; | ||
``` | ||
|
||
2. Define your steps: | ||
|
||
```tsx | ||
const { Scoped, useStepper, steps } = defineStepper( | ||
{ id: "step-1", title: "Step 1", description: "Description for step 1" }, | ||
{ id: "step-2", title: "Step 2", description: "Description for step 2" }, | ||
{ id: "step-3", title: "Step 3", description: "Description for step 3" }, | ||
{ id: "step-4", title: "Step 4", description: "Description for step 4" } | ||
); | ||
``` | ||
|
||
3. Use the hook in your components: | ||
|
||
```tsx | ||
function StepperComponent() { | ||
const { currentStep, nextStep, prevStep } = useStepper(); | ||
|
||
return ( | ||
<div> | ||
<h2>{currentStep.title}</h2> | ||
<p>{currentStep.description}</p> | ||
<button onClick={prevStep}>Previous</button> | ||
<button onClick={nextStep}>Next</button> | ||
</div> | ||
); | ||
} | ||
``` | ||
|
||
## How It Works | ||
|
||
Stepperize allows you to define a series of steps with unique IDs. When you create your steps using `defineStepper`, you get: | ||
|
||
- A `Scoped` component for context management | ||
- A `useStepper` hook for step control | ||
- An array of `steps` for rendering | ||
|
||
The only required field for each step is the `id`. You can add any additional properties you need, and they'll be fully typesafe when using the hook. | ||
|
||
## Documentation | ||
|
||
For more detailed information on usage, configuration, and advanced features, visit our [full documentation](https://stepperize.vercel.app). | ||
|
||
## Contributing | ||
|
||
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for more details. | ||
|
||
## License | ||
|
||
Stepperize is [MIT licensed](LICENSE). |
Oops, something went wrong.