separate button group component + stories

This commit is contained in:
Nikita Galaiko 2023-03-31 13:00:15 +02:00
parent 09a8e80662
commit df2dec662c
5 changed files with 5 additions and 3 deletions

View File

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

View File

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

View File

@ -1,5 +1,5 @@
<script lang="ts"> <script lang="ts">
import ButtonGroup from './ButtonGroup.svelte'; import { ButtonGroup } from '$lib/components';
import Modal from './Modal.svelte'; import Modal from './Modal.svelte';
export let title: string; export let title: string;

View File

@ -4,7 +4,7 @@ export { default as Breadcrumbs } from './Breadcrumbs.svelte';
export { default as CodeViewer } from './CodeViewer'; export { default as CodeViewer } from './CodeViewer';
export { default as CommandPalette } from './CommandPalette'; export { default as CommandPalette } from './CommandPalette';
export { default as Modal } from './Modal.svelte'; export { default as Modal } from './Modal.svelte';
export { default as ButtonGroup } from './ButtonGroup.svelte'; export { default as ButtonGroup } from './ButtonGroup';
export { default as Dialog } from './Dialog.svelte'; export { default as Dialog } from './Dialog.svelte';
export { default as Tooltip } from './Tooltip.svelte'; export { default as Tooltip } from './Tooltip.svelte';
export { default as Button } from './Button'; export { default as Button } from './Button';