12 implement twilio sms #37

Merged
BenjaminPalko merged 26 commits from 12-implement-twilio-sms into master 2025-01-02 20:11:28 -05:00
Showing only changes of commit f88b960bbe - Show all commits

View file

@ -1,7 +1,8 @@
<script module lang="ts">
import { defineMeta } from '@storybook/addon-svelte-csf';
import Button from './Button.svelte';
import { fn } from '@storybook/test';
import type { ComponentProps } from 'svelte';
import Button from './Button.svelte';
const { Story } = defineMeta({
title: 'Actions/Button',
@ -10,6 +11,7 @@
onClick: fn(),
},
argTypes: {
block: { control: 'boolean' },
color: {
control: 'select',
options: [
@ -25,9 +27,12 @@
'error',
],
},
full: { control: 'boolean' },
glass: { control: 'boolean' },
outline: {
control: 'boolean',
},
responsive: { control: 'boolean' },
size: {
control: 'select',
options: ['Default', 'xs', 'sm', 'lg'],
@ -37,8 +42,13 @@
control: 'select',
options: ['button', 'reset', 'submit'],
},
wide: { control: 'boolean' },
},
});
</script>
<Story name="Default" args={{ label: 'Button', color: 'primary' }} />
{#snippet template({ children: _, ...props }: Partial<ComponentProps<typeof Button>>)}
<Button {...props}>Button</Button>
{/snippet}
<Story name="Default" args={{}} children={template} />