Add custom dots example

This commit is contained in:
Vadim
2021-01-22 15:25:27 +03:00
parent 99f6c2d488
commit e66d0f158d
3 changed files with 161 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
import ImageCarouselView from './ImageCarouselView.svelte';
import ImageCarouselViewCustomDots from './ImageCarouselViewCustomDots.svelte';
export default {
title: 'ImageCarousel',
@@ -10,4 +11,12 @@ const Template = ({ ...args }) => ({
props: args
});
const TemplateCustomDots = ({ ...args }) => ({
Component: ImageCarouselViewCustomDots,
props: args
});
export const Primary = Template.bind({});
export const WithCustomDots = TemplateCustomDots.bind({});