diff --git a/src/Flex/README.md b/src/Flex/README.md index b01b5f0..b2764f8 100644 --- a/src/Flex/README.md +++ b/src/Flex/README.md @@ -2,7 +2,7 @@ # Flex -> [UIKit documentation](https://getuikit.com/docs/Flex) +> [UIKit documentation](https://getuikit.com/docs/flex) > [Storybook](https://0c370t.github.io/Svelte-UIKit3/docs/?path=/story/Flex--main) ## Usage diff --git a/src/README.md b/src/README.md index 93410f1..b2ee968 100644 --- a/src/README.md +++ b/src/README.md @@ -18,5 +18,6 @@ - [Dropdown](Dropdown#dropdown) - [Flex](Flex#flex) - [List](List#list) +- [Section](Section#section) - [Tile](Tile#tile) - [Width](helpers#width) diff --git a/src/Section/README.md b/src/Section/README.md new file mode 100644 index 0000000..7c60c13 --- /dev/null +++ b/src/Section/README.md @@ -0,0 +1,19 @@ +# ⚠️ This Section is a WIP ⚠️ + + +# Section +> [UIKit documentation](https://getuikit.com/docs/section) + +> [Storybook](https://0c370t.github.io/Svelte-UIKit3/docs/?path=/story/Section--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/Section/Section.svelte b/src/Section/Section.svelte new file mode 100644 index 0000000..c45611b --- /dev/null +++ b/src/Section/Section.svelte @@ -0,0 +1,48 @@ + + + + +
+ +
\ No newline at end of file diff --git a/src/index.js b/src/index.js index 5c75935..4b191db 100644 --- a/src/index.js +++ b/src/index.js @@ -39,6 +39,8 @@ export {default as Inline} from "./Utility/Inline.svelte"; export {default as List, listOptions} from "./List/List.svelte"; +export {default as Section, sectionOptions} from "./Section/Section.svelte"; + export {default as Tile, tileOptions} from "./Tile/Tile.svelte"; export {uk_width} from "./helpers/width"; diff --git a/stories/Section.stories.js b/stories/Section.stories.js new file mode 100644 index 0000000..a63baca --- /dev/null +++ b/stories/Section.stories.js @@ -0,0 +1,21 @@ +import SectionView from "./views/Section/SectionView.svelte"; +import {sectionOptions} from "../src"; +import {withKnobs, text, boolean, number, select} from "@storybook/addon-knobs"; +import {validWidths} from "../src/helpers/width"; + +export default { + title: 'Section', + component: SectionView, + decorators: [withKnobs] +}; + +export const Main = () => ({ + Component: SectionView, + props: { + props: { + style: select("Style", [...sectionOptions.styles], ""), + size: select("Size", ["", ...sectionOptions.sizes], ""), + overlap: boolean("Overlap", false) + }, + } +}); \ No newline at end of file diff --git a/stories/views/Section/SectionView.svelte b/stories/views/Section/SectionView.svelte new file mode 100644 index 0000000..1921909 --- /dev/null +++ b/stories/views/Section/SectionView.svelte @@ -0,0 +1,15 @@ + + +
+

Section Heading

+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

+
+