From 5ff07d60b85e0f0953490796a2db40975bd75154 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sun, 22 May 2022 12:38:41 -0700 Subject: [PATCH] docs: display "Required" tag for required props --- docs/src/components/ComponentApi.svelte | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/src/components/ComponentApi.svelte b/docs/src/components/ComponentApi.svelte index 2e260202..a0d56987 100644 --- a/docs/src/components/ComponentApi.svelte +++ b/docs/src/components/ComponentApi.svelte @@ -68,13 +68,18 @@ {#if prop.reactive}
Reactive
{/if} + {#if prop.isRequired} + Required + {/if} {#each (prop.type || "").split(" | ") as type, i (type)}