Skip to content

Commit

Permalink
rename example content to children
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Jun 11, 2024
1 parent e632ad9 commit d7c4e87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/Button.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
control: { type: 'select' },
options: ['small', 'medium', 'large'],
},
content: { control: 'text' },
children: { control: 'text' },
},
args: {
content: 'Content',
children: 'Content',
},
});
</script>
Expand All @@ -30,7 +30,7 @@
</script>

{#snippet template({ ...args })}
<Button {...args}>{args.content}</Button>
<Button {...args}>{args.children}</Button>
{/snippet}

<!-- More on writing stories with args: https://storybook.js.org/docs/writing-stories/args -->
Expand All @@ -42,4 +42,4 @@

<Story name="Small" args={{ size: 'small' }} />

<Story name="Long content" args={{ content: 'this is a lot of text for a button' }} />
<Story name="Long content" args={{ children: 'this is a lot of text for a button' }} />

0 comments on commit d7c4e87

Please sign in to comment.