Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit faa36e8

Browse filesBrowse files
committed
Add markup
1 parent c66f08b commit faa36e8
Copy full SHA for faa36e8

File tree

Expand file treeCollapse file tree

1 file changed

+18
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+18
-0
lines changed

‎src/components/Counter/Counter.svx

Copy file name to clipboardExpand all lines: src/components/Counter/Counter.svx
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,26 @@
22
import Counter from './Counter.svelte'
33
</script>
44

5+
# Counter
6+
57
<Counter
68
incrementText="+"
79
decrementText="-"
810
initialValue={0}
911
/>
12+
13+
```
14+
<Counter
15+
incrementText="+"
16+
decrementText="-"
17+
initialValue={0}
18+
/>
19+
```
20+
21+
## Props
22+
23+
| Prop | Type | Default | Description | |
24+
|------------------|------------|----------|--------------- -----------|
25+
| `incrementText` | `String` | `+` | Text for increment button |
26+
| `decrementText` | `String` | `-` | Text for decrement button |
27+
| `initialValue` | `Number` | `0` | Value to start on |

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.