Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
Svelte
1234567891011121314151617181920212223242526272829<script module lang="ts"> import { defineMeta } from "@storybook/addon-svelte-csf"; import Inbox from "$icon/inbox"; import EmptyState from "$lib/components/ui/EmptyState.svelte"; import Link from "$lib/components/ui/Link.svelte";
const { Story } = defineMeta({ title: "UI/EmptyState", component: EmptyState, tags: ["autodocs"], args: { message: "No repositories yet." } });</script>
<Story name="Default" />
<!-- Children render inline after the message — typically a call-to-action link. --><Story name="With action" asChild> <EmptyState message="No repositories yet."> <Link href="/repo/new">Create one</Link> </EmptyState></Story>
<Story name="Card" args={{ message: "No issues yet.", icon: Inbox, background: true }} />
<Story name="Inline" args={{ size: "inline", message: "No comments yet." }} />