Skip to content

Commit f90e65c

Browse files
committed
Add Section WIP template files
1 parent 08ab5e3 commit f90e65c

File tree

7 files changed

+60
-1
lines changed

7 files changed

+60
-1
lines changed

src/Flex/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
# Flex
5-
> [UIKit documentation](https://getuikit.com/docs/Flex)
5+
> [UIKit documentation](https://getuikit.com/docs/flex)
66
77
> [Storybook](https://0c370t.github.io/Svelte-UIKit3/docs/?path=/story/Flex--main)
88
## Usage

src/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
- [Drop](Drop#drop)
1818
- [Dropdown](Dropdown#dropdown)
1919
- [Flex](Flex#flex)
20+
- [Section](Section#section)
2021
- [Tile](Tile#tile)
2122
- [Width](helpers#width)

src/Section/README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# ⚠️ This Section is a WIP ⚠️
2+
3+
4+
# Section
5+
> [UIKit documentation](https://getuikit.com/docs/section)
6+
7+
> [Storybook](https://0c370t.github.io/Svelte-UIKit3/docs/?path=/story/Section--main)
8+
## Usage
9+
10+
#### Props
11+
| name | type | description | see also |
12+
|-------------|-------|------------------------------|---------------------------------|
13+
14+
#### Slots
15+
| name | type | inside | description |
16+
|---------|------|------------------------|-------------------------------------------|
17+
18+
#### Real Example
19+
> Note that all props are default values

src/Section/Section.svelte

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<script context="module">
2+
3+
</script>
4+
5+
<script>
6+
7+
</script>
8+
9+
<h1>Hello, world.</h1>

src/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export {default as Flex, flexOptions} from "./Flex/Flex.svelte";
3737

3838
export {default as Inline} from "./Utility/Inline.svelte";
3939

40+
export {default as Section} from "./Section/Section.svelte";
41+
4042
export {default as Tile, tileOptions} from "./Tile/Tile.svelte";
4143

4244
export {uk_width} from "./helpers/width";

stories/Section.stories.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import SectionView from "./views/Section/SectionView.svelte";
2+
import {sectionOptions} from "../src";
3+
import {withKnobs, text, boolean, number, select} from "@storybook/addon-knobs";
4+
import {validWidths} from "../src/helpers/width";
5+
6+
export default {
7+
title: 'Section',
8+
component: SectionView,
9+
decorators: [withKnobs]
10+
};
11+
12+
export const Main = () => ({
13+
Component: SectionView,
14+
props: {
15+
props: {
16+
17+
},
18+
}
19+
});
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<script>
2+
import {Section} from "../../../src";
3+
export let props = {};
4+
</script>
5+
6+
<div {...props}>
7+
<h3>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h3>
8+
</div>
9+

0 commit comments

Comments
 (0)