diff --git a/src/README.md b/src/README.md index 93410f1..77f6415 100644 --- a/src/README.md +++ b/src/README.md @@ -18,5 +18,6 @@ - [Dropdown](Dropdown#dropdown) - [Flex](Flex#flex) - [List](List#list) +- [ThumbNav](ThumbNav#thumbnav) - [Tile](Tile#tile) - [Width](helpers#width) diff --git a/src/ThumbNav/README.md b/src/ThumbNav/README.md new file mode 100644 index 0000000..8f52bf1 --- /dev/null +++ b/src/ThumbNav/README.md @@ -0,0 +1,19 @@ +# ⚠️ This Section is a WIP ⚠️ + + +# ThumbNav +> [UIKit documentation](https://getuikit.com/docs/thumbnav) + +> [Storybook](https://0c370t.github.io/Svelte-UIKit3/docs/?path=/story/Thumbnav--main) +## Usage + +#### Props +| name | type | description | see also | +|-------------|-------|------------------------------|---------------------------------| + +#### Slots +| name | type | inside | description | +|---------|------|------------------------|-------------------------------------------| + +#### Real Example +> Note that all props are default values diff --git a/src/ThumbNav/ThumbNav.svelte b/src/ThumbNav/ThumbNav.svelte new file mode 100644 index 0000000..61873a7 --- /dev/null +++ b/src/ThumbNav/ThumbNav.svelte @@ -0,0 +1,30 @@ + + + + + \ No newline at end of file diff --git a/src/ThumbNav/ThumbNavItem.svelte b/src/ThumbNav/ThumbNavItem.svelte new file mode 100644 index 0000000..a2a5976 --- /dev/null +++ b/src/ThumbNav/ThumbNavItem.svelte @@ -0,0 +1,12 @@ + + +
  • + + + +
  • diff --git a/src/index.js b/src/index.js index 5c75935..5fe5e33 100644 --- a/src/index.js +++ b/src/index.js @@ -39,6 +39,9 @@ export {default as Inline} from "./Utility/Inline.svelte"; export {default as List, listOptions} from "./List/List.svelte"; +export {default as ThumbNav} from "./ThumbNav/ThumbNav.svelte"; +export {default as ThumbNavItem} from "./ThumbNav/ThumbNavItem.svelte"; + export {default as Tile, tileOptions} from "./Tile/Tile.svelte"; export {uk_width} from "./helpers/width"; diff --git a/stories/ThumbNav.stories.js b/stories/ThumbNav.stories.js new file mode 100644 index 0000000..21e13b6 --- /dev/null +++ b/stories/ThumbNav.stories.js @@ -0,0 +1,20 @@ +import ThumbnavView from "./views/ThumbNav/ThumbnavView.svelte"; +import {thumbnavOptions} from "../src"; +import {withKnobs, text, boolean, number, select} from "@storybook/addon-knobs"; +import {validWidths} from "../src/helpers/width"; + +export default { + title: 'ThumbNav', + component: ThumbnavView, + decorators: [withKnobs] +}; + +export const Main = () => ({ + Component: ThumbnavView, + props: { + props: { + vertical: boolean("Vertical", false), + width: select("Width", ["", ...validWidths], "") + }, + } +}); \ No newline at end of file diff --git a/stories/views/ThumbNav/ThumbnavView.svelte b/stories/views/ThumbNav/ThumbnavView.svelte new file mode 100644 index 0000000..90a558b --- /dev/null +++ b/stories/views/ThumbNav/ThumbnavView.svelte @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file