Add custom arrows example
This commit is contained in:
@@ -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({});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user