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

@@ -0,0 +1,14 @@
---
title: Button
component: Button
---
<script lang="ts">
import Button from "$lib/components/Button.svelte";
</script>
<Button>Eat cake</Button>
<Button size="sm" color="primary">Small piece</Button>
<Button size="lg" color="danger">Big part</Button>