Skip to content

Commit

Permalink
docs: fixed default popper option and scrollIntoView option
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihsolhan committed Apr 29, 2022
1 parent 48939bf commit 9bf5e4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/pages/2.getting-started/3.advanced-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ and import the `ROnboardingStep` component
++ import { ROnboardingWrapper, ROnboardingStep, useROnboarding } from 'r-onboarding'
```

#### You can now implement your custom UI by using [Render Props](/props/render-props)
You can now implement your custom UI by using [Render Props](/props/render-props)


```tsx
Expand Down
13 changes: 2 additions & 11 deletions docs/pages/3.props/2.options.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,7 @@ You can override `ROnboardingWrapper`'s options by passing options to `ROnboardi

```js
{
popper: {
modifiers: [
{
name: "offset",
options: {
offset: [0, 10],
},
}
]
},
popper: {},
disableOverlay: false,
scrollToStep: {
enabled: true,
Expand All @@ -43,7 +34,7 @@ You can override `ROnboardingWrapper`'s options by passing options to `ROnboardi
| `disableOverlay` | Boolean | `false` |
| `scrollToStep` | | |
| `scrollToStep.enabled` | Boolean | `true` |
| `scrollToStep.options` | [Scroll Into View Options](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) | `{}` |
| `scrollToStep.options` | [Scroll Into View Options](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) | `{ behavior: 'smooth', block: 'center', inline: 'center' }` |



Expand Down

0 comments on commit 9bf5e4c

Please sign in to comment.