mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-07 15:19:20 +01:00
Add stories
This commit is contained in:
7
components/calendar/CalendarComponent.story.tsx
Normal file
7
components/calendar/CalendarComponent.story.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import CalendarComponent from './CalendarComponent';
|
||||
|
||||
export default {
|
||||
title: 'Calendar component',
|
||||
};
|
||||
|
||||
export const Default = (args: any) => <CalendarComponent {...args} />;
|
||||
17
components/calendar/MediaDisplay.story.tsx
Normal file
17
components/calendar/MediaDisplay.story.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import MediaDisplay from './MediaDisplay';
|
||||
|
||||
export default {
|
||||
title: 'Media display component',
|
||||
args: {
|
||||
media: {
|
||||
id: '1',
|
||||
title: 'Media title',
|
||||
description: 'Media description',
|
||||
poster: 'https://fr.web.img5.acsta.net/pictures/22/04/08/10/30/1779137.jpg',
|
||||
type: 'movie',
|
||||
genres: ['Action', 'Adventure', 'Fantasy'],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = (args: any) => <MediaDisplay {...args} />;
|
||||
Reference in New Issue
Block a user