Files
Homarr/src/components/AppShelf/AppShelf.story.tsx

28 lines
714 B
TypeScript
Raw Normal View History

import { SimpleGrid } from '@mantine/core';
import AppShelf from './AppShelf';
import { AppShelfItem } from './AppShelfItem';
2022-04-26 00:14:42 +02:00
export default {
title: 'Item Shelf',
2022-05-04 07:12:22 +02:00
component: AppShelf,
args: {
service: {
name: 'qBittorrent',
url: 'http://',
icon: 'https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/qBittorrent/icon.png',
type: 'qBittorrent',
apiKey: '',
},
},
2022-04-26 00:14:42 +02:00
};
2022-04-30 21:51:37 +02:00
export const Default = (args: any) => <AppShelf {...args} />;
export const One = (args: any) => <AppShelfItem {...args} />;
export const Ten = (args: any) => (
<SimpleGrid>
{Array.from(Array(10)).map((_, i) => (
<AppShelfItem {...args} key={i} />
))}
</SimpleGrid>
);