Updating breadcrumbs docs on ConditionalRender (#1871)

This commit is contained in:
Stephen Tse authored and GitHub committed 2025-03-26 08:32:13 -07:00
1 parent 23b691f38c
commit b397dae951
2 files changed
+10 -2

No files matched your search

+10 -1
View File
@@ -81,4 +81,13 @@ Component.ConditionalRender({
})
```
This example would only render the Search component when the page is not in fullpage mode.
The example above would only render the Search component when the page is not in fullpage mode.
```typescript
Component.ConditionalRender({
component: Component.Breadcrumbs(),
condition: (page) => page.fileData.slug !== "index",
})
```
The example above would hide breadcrumbs on the root `index.md` page.