Skip to content

Commit af3bc3b

Browse files
committed
add a fourth header
1 parent b1ba4a0 commit af3bc3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/docs/03-template-syntax/06-snippet.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ Any content inside the component tags that is _not_ a snippet declaration implic
190190

191191
> [!NOTE] Note that you cannot have a prop called `children` if you also have content inside the component — for this reason, you should avoid having props with that name
192192
193+
### Optional snippet props
194+
193195
You can declare snippet props as being optional. You can either use optional chaining to not render anything if the snippet isn't set...
194196

195197
```svelte

0 commit comments

Comments
 (0)