aotds-docks/src/lib/components/ShipEdit/Identification/Identification.stories.svelte

23 lines
528 B
Svelte
Raw Normal View History

2022-03-02 00:14:01 +00:00
<Meta title="Identification" component={Identification} argTypes={{}} />
2022-03-01 22:13:05 +00:00
<Story name="Primary" args={{}} />
<Template let:args>
<div style="width: 50em">
<Identification {...args} />
</div>
</Template>
<script>
import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
import { action } from "@storybook/addon-actions";
import { setContext } from "svelte";
import Identification from "./index.svelte";
setContext("ship", {
dispatch: (type, detail) => action(type)(detail),
});
</script>