feat: add Storybook component explorer
This commit is contained in:
parent
f1dc95b51c
commit
d95f064189
47 changed files with 1730 additions and 8 deletions
19
src/lib/ui/stories/ServiceRow.stories.svelte
Normal file
19
src/lib/ui/stories/ServiceRow.stories.svelte
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<script module lang="ts">
|
||||
import { defineMeta } from "@storybook/addon-svelte-csf";
|
||||
import ServiceRow from "../components/ServiceRow.svelte";
|
||||
import { serviceRows } from "./story-data";
|
||||
|
||||
const { Story } = defineMeta({
|
||||
title: "Dashboard Primitives/ServiceRow",
|
||||
component: ServiceRow,
|
||||
tags: ["autodocs"],
|
||||
});
|
||||
</script>
|
||||
|
||||
<Story name="Normal" args={{ service: serviceRows.normal }} />
|
||||
<Story name="Down" args={{ service: serviceRows.down }} />
|
||||
<Story name="Degraded" args={{ service: serviceRows.degraded }} />
|
||||
<Story name="Stale" args={{ service: serviceRows.stale }} />
|
||||
<Story name="No Link" args={{ service: serviceRows.noLink }} />
|
||||
<Story name="Long Title Description" args={{ service: serviceRows.long }} />
|
||||
<Story name="Keyboard Focus" args={{ service: serviceRows.normal }} />
|
||||
Loading…
Add table
Add a link
Reference in a new issue