This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / web / src / lib / components / repo / TreeHeader.stories.svelte
776 B 27 lines
1<script module lang="ts"> 2 import { defineMeta } from "@storybook/addon-svelte-csf"; 3 import TreeHeader from "./TreeHeader.svelte"; 4 5 const entries = [ 6 { name: "components", kind: "directory" as const, size: 0 }, 7 { name: "index.ts", kind: "file" as const, size: 128 }, 8 { name: "package.json", kind: "file" as const, size: 512 } 9 ]; 10 11 const { Story } = defineMeta({ 12 title: "Repo/TreeHeader", 13 component: TreeHeader, 14 tags: ["autodocs"], 15 args: { 16 ownerHandle: "dawn", 17 repoName: "tangled", 18 ref: "main", 19 path: "src/lib", 20 entries 21 } 22 }); 23</script> 24 25<Story name="Nested path with folder and file counts" /> 26<Story name="Repository root" args={{ path: "", entries: entries.slice(0, 2) }} /> 27<Story name="Files only" args={{ entries: entries.slice(1) }} />