Format stories js
This commit is contained in:
@@ -1,27 +1,28 @@
|
|||||||
import CarouselView from './CarouselView.svelte';
|
import CarouselView from './CarouselView.svelte'
|
||||||
import CarouselViewCustomDots from './CarouselViewCustomDots.svelte';
|
import CarouselViewCustomDots from './CarouselViewCustomDots.svelte'
|
||||||
import CarouselViewCustomArrows from './CarouselViewCustomArrows.svelte';
|
import CarouselViewCustomArrows from './CarouselViewCustomArrows.svelte'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Carousel',
|
title: 'Carousel',
|
||||||
component: CarouselView
|
component: CarouselView,
|
||||||
};
|
}
|
||||||
|
|
||||||
const Template = ({ ...args }) => ({
|
const Template = ({ ...args }) => ({
|
||||||
Component: CarouselView,
|
Component: CarouselView,
|
||||||
props: args
|
props: args,
|
||||||
});
|
})
|
||||||
export const Primary = Template.bind({});
|
export const Primary = Template.bind({})
|
||||||
|
|
||||||
const TemplateCustomDots = ({ ...args }) => ({
|
const TemplateCustomDots = ({ ...args }) => ({
|
||||||
Component: CarouselViewCustomDots,
|
Component: CarouselViewCustomDots,
|
||||||
props: args
|
props: args,
|
||||||
});
|
})
|
||||||
export const WithCustomDots = TemplateCustomDots.bind({});
|
export const WithCustomDots = TemplateCustomDots.bind({})
|
||||||
|
|
||||||
const TemplateCustomArrows = ({ ...args }) => ({
|
const TemplateCustomArrows = ({ ...args }) => ({
|
||||||
Component: CarouselViewCustomArrows,
|
Component: CarouselViewCustomArrows,
|
||||||
props: args
|
props: args,
|
||||||
});
|
})
|
||||||
export const WithCustomArrows = TemplateCustomArrows.bind({});
|
export const WithCustomArrows = TemplateCustomArrows.bind({})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user