Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/content/docs/style-guide/components/render.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ params:
---
```

:::caution
If you use the Markdown component to format your optional parameter, you need to craft it in a special way so you don't get an `Undefined` error in pages without the optional parameter.

Say, for example, that your optional parameter is `instructions`. You would craft it like this:

`{props.instructions && <Markdown text={props.instructions} />}`

instead of `<Markdown text={props.instructions} />`

:::

For each of the below examples, you can open the dropdown to view the partial's content.

### Properties as a plain string
Expand Down