From bc8cceede86967b0b8c4941714b596be777883e9 Mon Sep 17 00:00:00 2001 From: Vadim Date: Wed, 27 Jan 2021 22:31:48 +0300 Subject: [PATCH] Add arrows customizing example --- src/docs/Carousel.svx | 123 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 100 insertions(+), 23 deletions(-) diff --git a/src/docs/Carousel.svx b/src/docs/Carousel.svx index d279cdc..d75629e 100644 --- a/src/docs/Carousel.svx +++ b/src/docs/Carousel.svx @@ -82,7 +82,7 @@ {#each images as src, imageIndex (src)}
{#if loaded.includes(imageIndex)} - + nature {/if}
{/each} @@ -95,7 +95,7 @@ {#each images as src, imageIndex (src)}
{#if loaded.includes(imageIndex)} - + nature {/if}
{/each} @@ -104,6 +104,41 @@ +## Arrows customizing + +
+ +
+ {#each colors as { color, text } (color)} + + {/each} +
+ +
+
+ +```jsx + +
+ +
+ {#each colors as { color, text } (color)} + + {/each} +
+ +
+
+``` + + + ## Use case @@ -210,26 +245,68 @@ Slot props: \ No newline at end of file