#31 : Extend docs
This commit is contained in:
25
README.md
25
README.md
@@ -34,18 +34,19 @@ Import component
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Props
|
## Props
|
||||||
| Prop | Type | Default | Description |
|
| Prop | Type | Default | Description |
|
||||||
|----------------------|------------|-----------------|-----------------------------------------------|
|
|---------------------------|------------|-----------------|-----------------------------------------------|
|
||||||
| `arrows` | `boolean` | `true` | Enable Next/Prev arrows |
|
| `arrows` | `boolean` | `true` | Enable Next/Prev arrows |
|
||||||
| `infinite` | `boolean` | `true` | Infinite looping |
|
| `infinite` | `boolean` | `true` | Infinite looping |
|
||||||
| `initialPageIndex` | `number` | `0` | Page to start on |
|
| `initialPageIndex` | `number` | `0` | Page to start on |
|
||||||
| `duration` | `number` | `500` | Transition duration (ms) |
|
| `duration` | `number` | `500` | Transition duration (ms) |
|
||||||
| `autoplay` | `boolean` | `false` | Enables auto play of pages |
|
| `autoplay` | `boolean` | `false` | Enables auto play of pages |
|
||||||
| `autoplayDuration` | `number` | `3000` | Autoplay change interval (ms) |
|
| `autoplayDuration` | `number` | `3000` | Autoplay change interval (ms) |
|
||||||
| `autoplayDirection` | `string` | `'next'` | Autoplay change direction (`next` or `prev`) |
|
| `autoplayDirection` | `string` | `'next'` | Autoplay change direction (`next` or `prev`) |
|
||||||
| `pauseOnFocus` | `boolean` | `false` | Pause autoplay on focus |
|
| `pauseOnFocus` | `boolean` | `false` | Pause autoplay on focus |
|
||||||
| `dots` | `boolean` | `true` | Current page indicator dots |
|
| `autoplayProgressVisible` | `boolean` | `false` | Show autoplay duration progress indicator |
|
||||||
| `timingFunction` | `string` | `'ease-in-out'` | CSS animation timing function |
|
| `dots` | `boolean` | `true` | Current page indicator dots |
|
||||||
|
| `timingFunction` | `string` | `'ease-in-out'` | CSS animation timing function |
|
||||||
|
|
||||||
## Events
|
## Events
|
||||||
|
|
||||||
|
|||||||
@@ -262,18 +262,19 @@ Import component
|
|||||||
|
|
||||||
<div class="table-wrapper">
|
<div class="table-wrapper">
|
||||||
|
|
||||||
| Prop | Type | Default | Description |
|
| Prop | Type | Default | Description |
|
||||||
|----------------------|------------|-----------------|-----------------------------------------------|
|
|---------------------------|------------|-----------------|-----------------------------------------------|
|
||||||
| `arrows` | `boolean` | `true` | Enable Next/Prev arrows |
|
| `arrows` | `boolean` | `true` | Enable Next/Prev arrows |
|
||||||
| `infinite` | `boolean` | `true` | Infinite looping |
|
| `infinite` | `boolean` | `true` | Infinite looping |
|
||||||
| `initialPageIndex` | `number` | `0` | Page to start on |
|
| `initialPageIndex` | `number` | `0` | Page to start on |
|
||||||
| `duration` | `number` | `500` | Transition duration (ms) |
|
| `duration` | `number` | `500` | Transition duration (ms) |
|
||||||
| `autoplay` | `boolean` | `false` | Enables auto play of pages |
|
| `autoplay` | `boolean` | `false` | Enables auto play of pages |
|
||||||
| `autoplayDuration` | `number` | `3000` | Autoplay change interval (ms) |
|
| `autoplayDuration` | `number` | `3000` | Autoplay change interval (ms) |
|
||||||
| `autoplayDirection` | `string` | `'next'` | Autoplay change direction (`next` or `prev`) |
|
| `autoplayDirection` | `string` | `'next'` | Autoplay change direction (`next` or `prev`) |
|
||||||
| `pauseOnFocus` | `boolean` | `false` | Pause autoplay on focus |
|
| `pauseOnFocus` | `boolean` | `false` | Pause autoplay on focus |
|
||||||
| `dots` | `boolean` | `true` | Current page indicator dots |
|
| `autoplayProgressVisible` | `boolean` | `false` | Show autoplay duration progress indicator |
|
||||||
| `timingFunction` | `string` | `'ease-in-out'` | CSS animation timing function |
|
| `dots` | `boolean` | `true` | Current page indicator dots |
|
||||||
|
| `timingFunction` | `string` | `'ease-in-out'` | CSS animation timing function |
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user