#69 : Update demo
This commit is contained in:
@@ -29,24 +29,22 @@
|
|||||||
<Divider />
|
<Divider />
|
||||||
|
|
||||||
## Multiple items!anchorId:features-multiple-items;
|
## Multiple items!anchorId:features-multiple-items;
|
||||||
<Carousel>
|
<Carousel
|
||||||
{#each _.chunk(colors, 3) as colorsChunk, chunkIndex (chunkIndex)}
|
particlesToShow={3}
|
||||||
<div style="display: flex;">
|
particlesToScroll={3}
|
||||||
{#each colorsChunk as { color, text } (color)}
|
>
|
||||||
<Color {color} {text} />
|
{#each colors as { color, text } (color)}
|
||||||
{/each}
|
<Color {color} {text} />
|
||||||
</div>
|
|
||||||
{/each}
|
{/each}
|
||||||
</Carousel>
|
</Carousel>
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
<Carousel>
|
<Carousel
|
||||||
{#each _.chunk(colors, 3) as colorsChunk, chunkIndex (chunkIndex)}
|
particlesToShow={3}
|
||||||
<div style="display: flex;">
|
particlesToScroll={3}
|
||||||
{#each colorsChunk as { color, text } (color)}
|
>
|
||||||
<Color {color} {text} />
|
{#each colors as { color, text } (color)}
|
||||||
{/each}
|
<Color {color} {text} />
|
||||||
</div>
|
|
||||||
{/each}
|
{/each}
|
||||||
</Carousel>
|
</Carousel>
|
||||||
```
|
```
|
||||||
@@ -276,6 +274,8 @@ Import component:
|
|||||||
| `dots` | `boolean` | `true` | Current page indicator dots |
|
| `dots` | `boolean` | `true` | Current page indicator dots |
|
||||||
| `timingFunction` | `string` | `'ease-in-out'` | CSS animation timing function |
|
| `timingFunction` | `string` | `'ease-in-out'` | CSS animation timing function |
|
||||||
| `swiping` | `boolean` | `true` | Enables swiping |
|
| `swiping` | `boolean` | `true` | Enables swiping |
|
||||||
|
| `particlesToShow` | `number` | `1` | Number of elements to show |
|
||||||
|
| `particlesToScroll` | `number` | `1` | Number of elements to scroll |
|
||||||
|
|
||||||
<Divider />
|
<Divider />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user