Init base story for carousel
This commit is contained in:
19
src/ImageCarousel.stories.js
Normal file
19
src/ImageCarousel.stories.js
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import ImageCarousel from './ImageCarousel.svelte';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: 'ImageCarousel',
|
||||||
|
component: ImageCarousel,
|
||||||
|
argTypes: {
|
||||||
|
title: { control: 'text' },
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const Template = ({ ...args }) => ({
|
||||||
|
Component: ImageCarousel,
|
||||||
|
props: args,
|
||||||
|
});
|
||||||
|
|
||||||
|
export const Primary = Template.bind({});
|
||||||
|
Primary.args = {
|
||||||
|
title: 'This is a title'
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user