You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/docs/03-template-syntax/06-snippet.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,8 @@ Any content inside the component tags that is _not_ a snippet declaration implic
190
190
191
191
> [!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
192
192
193
+
### Optional snippet props
194
+
193
195
You can declare snippet props as being optional. You can either use optional chaining to not render anything if the snippet isn't set...
0 commit comments