* move loader to Feedback * fill out button props to match what is available on daisy * links * Alert component and InfoIcon * Loading component * Progress component * lol wtf * Tooltip component * Skeleton component * Divider component * fix errors * made this component early so i just fixed up some of the props
24 lines
641 B
Svelte
24 lines
641 B
Svelte
<script module lang="ts">
|
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
import type { ComponentProps } from 'svelte';
|
|
import Progress from './Progress.svelte';
|
|
|
|
const { Story } = defineMeta({
|
|
title: 'Feedback/Progress',
|
|
component: Progress,
|
|
argTypes: {
|
|
color: {
|
|
control: 'select',
|
|
options: ['primary', 'secondary', 'accent', 'info', 'success', 'warning', 'error'],
|
|
},
|
|
value: { control: 'number' },
|
|
max: { control: 'number' },
|
|
},
|
|
});
|
|
</script>
|
|
|
|
{#snippet template(props: ComponentProps<typeof Progress>)}
|
|
<Progress {...props} />
|
|
{/snippet}
|
|
|
|
<Story name="Default" args={{}} children={template} />
|