Skip to content

Commit

Permalink
Update REAME.md
Browse files Browse the repository at this point in the history
  • Loading branch information
j3rem1e committed Sep 13, 2023
1 parent d6ae8c9 commit d88b6ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,24 @@ It supports:
## Example

```svelte
<script>
import { Meta, Story, Template } from '@storybook/addon-svelte-csf';
<script content="module">
import Button from './Button.svelte';
export const meta = {
title: "Button",
component: Button
}
</script>
<script>
import { Story, Template } from '@storybook/addon-svelte-csf';
let count = 0;
function handleClick() {
count += 1;
}
</script>
<Meta title="Button" component={Button}/>
<Template let:args>
<Button {...args} on:click={handleClick}>
You clicked: {count}
Expand Down
2 changes: 2 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ interface Slots {
}
/**
* Meta.
*
* @deprecated
*/
export class Meta extends SvelteComponent<
BaseMeta<any> & BaseAnnotations<any, DecoratorReturnType> & {
Expand Down

0 comments on commit d88b6ba

Please sign in to comment.