separate button component + stories

This commit is contained in:
Nikita Galaiko 2023-03-31 12:58:31 +02:00
parent dcab13602b
commit 09a8e80662
5 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import type { Meta, StoryObj } from '@storybook/svelte';
import Button from '$lib/components/Button.svelte';
import Button from './Button.svelte';
// More on how to set up stories at: https://storybook.js.org/docs/7.0/svelte/writing-stories/introduction
const meta: Meta<Button> = {

View File

@ -0,0 +1,2 @@
import Button from './Button.svelte';
export default Button;

View File

@ -1,5 +1,5 @@
<script lang="ts">
import Button from '$lib/components/Button.svelte';
import { Button } from '$lib/components';
export let leftLabel: string;
export let leftAction: () => void;

View File

@ -19,3 +19,4 @@ export { default as IconCircleCancel } from './IconCircleCancel.svelte';
export { default as IconChevronLeft } from './IconChevronLeft.svelte';
export { default as IconChevronRight } from './IconChevronRight.svelte';
export { default as IconGitBranch } from './IconGitBranch.svelte';
export { default as IconHome } from './IconHome.svelte';