Skip to content

Commit

Permalink
Fix rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadi Abu Hilal authored and Shadi Abu Hilal committed Jan 4, 2024
1 parent a366e74 commit 600e05f
Show file tree
Hide file tree
Showing 8 changed files with 2,263 additions and 1,226 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
node_modules
dist
coverage
docs
.editorconfig
.DS_Store
.gitignore
index.cjs
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
wizard-step-indicator-react-*.tgz

# Logs
logs
*.log
Expand Down
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ README.md
jest.config.ts
.storybook/
tsconfig.json
rollup.config.js
wizard-step-indicator-react-*.tgz
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ WizardStepIndicator comoponent
Example:

```js
const [currentStepIndexState, setCurrentStepIndex] = useState(0);

...

<WizardStepIndicator
stepsCount={5}
currentStepIndex={0}
onClick={(index)=> { /* DO SOMTHING */}}
currentStepIndex={currentStepIndexState}
onClick={(index)=> {
setCurrentStepIndex(index);
}}
/>
```

Expand Down
Loading

0 comments on commit 600e05f

Please sign in to comment.