Skip to content

Commit

Permalink
Add story
Browse files Browse the repository at this point in the history
  • Loading branch information
ernstmul committed Nov 14, 2024
1 parent 3bfbf0b commit 9c1e782
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions v2/pink-sb/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export { default as ActionList } from './action-list/index.js';
export { default as Upload } from './upload/index.js';
export { default as Dialog } from './Dialog.svelte';
export { default as Empty } from './Empty.svelte';
export { default as Skeleton } from './Skeleton.svelte';
export { default as Keyboard } from './Keyboard.svelte';
export { default as Icon } from './Icon.svelte';
export { default as Pagination } from './Pagination.svelte';
Expand Down
34 changes: 34 additions & 0 deletions v2/pink-sb/src/stories/Skeleton.stories.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<script context="module" lang="ts">
import { Skeleton } from '$lib/index.js';
import type { MetaProps } from '@storybook/addon-svelte-csf';
import { Story } from '@storybook/addon-svelte-csf';
export const meta: MetaProps = {
title: 'Components/Skeleton',
component: Skeleton,
args: {
variant: 'circle',
width: 44,
height: 12
},
argTypes: {
variant: {
options: ['circle', 'square', 'line'],
control: { type: 'select' }
}
}
};
</script>

<div class="wrapper">
<Story name="Default" let:args>
<Skeleton {...args} />
</Story>
</div>

<style>
.wrapper {
margin: 100px auto;
width: 400px;
}
</style>

0 comments on commit 9c1e782

Please sign in to comment.