Skip to content

Commit

Permalink
restored configs for storybook constrols
Browse files Browse the repository at this point in the history
  • Loading branch information
bearni95 committed May 14, 2024
1 parent b98020f commit 9949571
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/ui-lib/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const config: StorybookConfig = {
name: '@storybook/sveltekit',
options: {}
},
addons,
docs
};

Expand Down
11 changes: 9 additions & 2 deletions packages/ui-lib/src/stories/Footer/Footer.stories.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '../../app.css';
import type { Meta, StoryObj } from '@storybook/svelte';
import { Footer } from '../../lib/components/Footer';

Expand All @@ -8,6 +7,12 @@ const meta = {
component: Footer,
tags:[],
//tags: ['autodocs'],
argTypes: {
label: { control: 'text' },
title: { control: 'text' },
text: { control: 'text' },
},

/*
argTypes: {
backgroundColor: { control: 'color' },
Expand All @@ -24,6 +29,8 @@ type Story = StoryObj<typeof meta>;
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary: Story = {
args: {
label: 'Footer'
label: 'Join the taiko community',
title: 'Taiko',
text: 'The most developer-friendly and secure Ethereum scaling solution'
}
};

0 comments on commit 9949571

Please sign in to comment.