-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
provide more storybook setup example for navigation
- Loading branch information
1 parent
37aff5b
commit ac7a67a
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
app/lib/components/navigation/navigator-expansion-control-button.stories.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
app/lib/components/navigation/primary-workmode-select.stories.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} /> |