Skip to content

Commit

Permalink
provide more storybook setup example for navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
softmarshmallow committed Sep 7, 2021
1 parent 37aff5b commit ac7a67a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta, Story, Preview, Props } from "@storybook/addon-docs/blocks";
import { NavigatorExpansionControlButton } from "./navigator-expansion-control-button";

<Meta title="components/navigator-expansion-control-button" />
<Meta title="navigation/navigator-expansion-control-button" />

Close or expand button used for global navigation.

Expand Down
32 changes: 32 additions & 0 deletions app/lib/components/navigation/primary-workmode-select.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { Meta, Story, Preview, Props } from "@storybook/addon-docs/blocks";
import { PrimaryWorkmodeSelect } from "./primary-workmode-select";

<Meta title="navigation/primary-workmode-select" />

Primary workmode selector for navigation.

# Preview

<Preview>
<Story name="default">
<PrimaryWorkmodeSelect
set={{
first: "code",
second: "design",
}}
selection={"code"}
/>
</Story>
<Story name="no selection (for development)">
<PrimaryWorkmodeSelect
set={{
first: "code",
second: "design",
}}
/>
</Story>
</Preview>

# Props

<Props of={PrimaryWorkmodeSelect} />

0 comments on commit ac7a67a

Please sign in to comment.