aotds-docks/src/lib/components/Output/Print/Print.stories.svelte

34 lines
683 B
Svelte
Raw Normal View History

<Meta
title="Output/Print"
component={Print}
argTypes={{
isMovable: { defaultValue: false },
}}
/>
2022-03-26 18:24:57 +00:00
<Story name="Primary" args={{}} />
<Template let:args>
<div style="width: 50em; positive: relative;">
<Print ship={$shipState} {...args} />
2022-03-26 18:24:57 +00:00
</div>
</Template>
<script>
import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
import { action } from "@storybook/addon-actions";
import { setContext } from "svelte";
2022-03-26 18:24:57 +00:00
import sample from "./sample.js";
import shipStore from "$lib/store/ship.js";
const ship = shipStore(sample);
setContext("ship", ship);
const shipState = ship.state;
import Print from "./index.svelte";
2022-03-26 18:24:57 +00:00
</script>