Skip to content

Commit

Permalink
Merge pull request #116 from kpustakhod/documentation
Browse files Browse the repository at this point in the history
Fix missed story examples in storybook.
  • Loading branch information
mellis481 authored May 30, 2023
2 parents 7b5de2f + c16333c commit 7c402c6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions website/docs/examples-DataTypes.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Data types
---

This example demonstrates different ways of defining ids in data

import CodeTabs from "../src/components/CodeTabs";
import TreeView from "./examples/DataTypes"
import js from "!!raw-loader!!./examples/DataTypes";
import css from "!!raw-loader!!./examples/DataTypes/styles.css";

<CodeTabs component={TreeView} js={js} css={css}/>
12 changes: 12 additions & 0 deletions website/docs/examples-SingleSelectCheckbox.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Checkbox (single selection)
---

This example demonstrates how to create single select checkbox tree

import CodeTabs from "../src/components/CodeTabs";
import TreeView from "./examples/SingleSelectCheckbox";
import js from "!!raw-loader!!./examples/SingleSelectCheckbox";
import css from "!!raw-loader!!./examples/SingleSelectCheckbox/styles.css";

<CodeTabs component={TreeView} js={js} css={css} />
2 changes: 2 additions & 0 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ module.exports = {
Examples: [
"examples-Basic",
"examples-ControlledExpandedNode",
"examples-DataTypes",
"examples-DirectoryTree",
"examples-MultiSelectDirectoryTree",
"examples-MultiSelectCheckbox",
"examples-MultiSelectCheckboxDisabled",
"examples-MultiSelectCheckboxAsync",
"examples-MultiSelectCheckboxControlled",
"examples-SingleSelectCheckbox",
],
},
};

0 comments on commit 7c402c6

Please sign in to comment.