Add component API to docs (ex: props, events, slots)

This commit is contained in:
venashial
2022-03-16 23:34:56 -07:00
parent 5a5f817e59
commit a0e05115a3
15 changed files with 877 additions and 41 deletions

View File

@@ -1,9 +1,10 @@
---
title: Buttons
title: Button
component: Button
---
<script lang="ts">
import Button from "$lib/components/elements/buttons/Button.svelte"
import Button from "$lib/components/Button.svelte";
</script>
<Button>Eat cake</Button>

View File

@@ -0,0 +1,10 @@
---
title: Link
component: Link
---
<script lang="ts">
import Link from "$lib/components/Link.svelte";
</script>
<Link href="#clicked">Click for fun</Link>

View File

@@ -1,11 +1,12 @@
---
title: Pagination
component: Pagination
---
<script lang="ts">
import Pagination from "$lib/components/elements/Pagination.svelte"
import Pagination from "$lib/components/Pagination.svelte"
</script>
TODO
Use pagination to show a set of page numbers and navigation directions to move through paginated data.
<Pagination page={20} count={50} />