This repository has no description
1<script module lang="ts">
2 import { defineMeta } from "@storybook/addon-svelte-csf";
3 import StringCard from "./StringCard.svelte";
4 import type { StringCardData } from "./types";
5
6 const entry: StringCardData = {
7 rkey: "3mrkgcxb4m422",
8 ownerHandle: "tangled.org",
9 filename: "flake.nix",
10 description: "Reproducible dev shell for the appview.",
11 createdAt: "2025-06-01T10:30:00Z",
12 lines: 84
13 };
14
15 const { Story } = defineMeta({
16 title: "Profile/StringCard",
17 component: StringCard,
18 tags: ["autodocs"],
19 argTypes: {
20 border: { control: "boolean" },
21 shadow: { control: "boolean" },
22 background: { control: "boolean" }
23 },
24 args: {
25 entry,
26 border: true,
27 shadow: false,
28 background: true
29 }
30 });
31</script>
32
33<Story name="Default" />
34<Story name="Elevated" args={{ shadow: true }} />
35<Story name="Plain" args={{ border: false, background: false }} />