-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use svelte storybook format
replace plain typescript storybook format with svelte using addon-svelte-csf this requires running test-storybook with --json-index flag. see: - storybookjs/addon-svelte-csf#65 - storybookjs/test-runner#80
- Loading branch information
1 parent
d663869
commit 73d0554
Showing
5 changed files
with
465 additions
and
497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script lang="ts" context="module"> | ||
import type { Meta } from "@storybook/svelte"; | ||
import Navbar from "$lib/components/navbar.svelte"; | ||
import { Story, Template } from "@storybook/addon-svelte-csf"; | ||
export const meta: Meta<Navbar> = { | ||
title: "Navbar", | ||
component: Navbar, | ||
tags: ["autodocs"], | ||
}; | ||
</script> | ||
|
||
<Template let:args> | ||
<Navbar {...args} /> | ||
</Template> | ||
|
||
<Story name="Default" /> | ||
|
||
<Story name="NoNIP07" args={{ nip07plugin: false }} /> | ||
|
||
<Story name="NIP07Exists" args={{ nip07plugin: true }} /> |
Oops, something went wrong.