diff --git a/README.md b/README.md index 2d2b5f5..787c877 100644 --- a/README.md +++ b/README.md @@ -137,4 +137,34 @@ Slot props: +``` + +## Methods + +### `goTo` +Navigates to a page by index + +Arguments: + +| Prop | Type | Default | Description | +|--------------------|-------------|---------|---------------------------------------| +| `pageIndex` | `number` | | Page number | +| `options.animated` | `boolean` | `true` | Should be animated or not | + +```jsx + + + + + + ``` \ No newline at end of file