diff --git a/src/ImageCarousel/ImageCarousel.stories.js b/src/ImageCarousel/ImageCarousel.stories.js index 2294fdd..282479c 100644 --- a/src/ImageCarousel/ImageCarousel.stories.js +++ b/src/ImageCarousel/ImageCarousel.stories.js @@ -1,5 +1,6 @@ import ImageCarouselView from './ImageCarouselView.svelte'; import ImageCarouselViewCustomDots from './ImageCarouselViewCustomDots.svelte'; +import ImageCarouselViewCustomArrows from './ImageCarouselViewCustomArrows.svelte'; export default { title: 'ImageCarousel', @@ -10,13 +11,17 @@ const Template = ({ ...args }) => ({ Component: ImageCarouselView, props: args }); +export const Primary = Template.bind({}); const TemplateCustomDots = ({ ...args }) => ({ Component: ImageCarouselViewCustomDots, props: args }); - -export const Primary = Template.bind({}); - export const WithCustomDots = TemplateCustomDots.bind({}); +const TemplateCustomArrows = ({ ...args }) => ({ + Component: ImageCarouselViewCustomArrows, + props: args +}); +export const WithCustomArrows = TemplateCustomArrows.bind({}); + diff --git a/src/ImageCarousel/ImageCarousel.svelte b/src/ImageCarousel/ImageCarousel.svelte index 1d6712e..b613a07 100644 --- a/src/ImageCarousel/ImageCarousel.svelte +++ b/src/ImageCarousel/ImageCarousel.svelte @@ -140,7 +140,7 @@
{#if arrows} - +
diff --git a/src/ImageCarousel/ImageCarouselViewCustomArrows.svelte b/src/ImageCarousel/ImageCarouselViewCustomArrows.svelte new file mode 100644 index 0000000..e26a3a3 --- /dev/null +++ b/src/ImageCarousel/ImageCarouselViewCustomArrows.svelte @@ -0,0 +1,133 @@ + + +
+ + {#each colors as color (color)} +
+

{color}

+
+ {/each} +
+
+ <<< +
+
+
+
+ >>> +
+
+
+
+ + \ No newline at end of file