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 / comment / Comment.stories.svelte
836 B 37 lines
1<script module lang="ts"> 2 import { defineMeta } from "@storybook/addon-svelte-csf"; 3 import Comment from "./Comment.svelte"; 4 import { sampleComments } from "./sampleComments"; 5 6 const { byjp, samuel } = sampleComments; 7 8 const { Story } = defineMeta({ 9 title: "Comment/Comment", 10 component: Comment, 11 tags: ["autodocs"], 12 argTypes: { 13 variant: { control: "inline-radio", options: ["top", "reply"] } 14 }, 15 args: { 16 authorHandle: byjp.authorHandle, 17 authorDid: byjp.authorDid, 18 createdAt: byjp.createdAt, 19 body: byjp.body, 20 bodyHtml: byjp.bodyHtml, 21 variant: "top" 22 } 23 }); 24</script> 25 26<Story name="Top level" /> 27<Story 28 name="Reply" 29 args={{ 30 variant: "reply", 31 authorHandle: samuel.authorHandle, 32 authorDid: samuel.authorDid, 33 createdAt: samuel.createdAt, 34 body: samuel.body, 35 bodyHtml: samuel.bodyHtml 36 }} 37/>