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,3 +1,7 @@
<script lang="ts">
const components = ['button', 'pagination', 'link']
</script>
<nav class="sidebar">
<div class="section">
<span class="section__title">Getting started</span>
@@ -8,7 +12,7 @@
<div class="section">
<span class="section__title">Components</span>
{#each ['buttons', 'pagination'] as component}
{#each components as component}
<a href="/components/{component}" class="section__link">{component}</a>
{/each}
</div>