Aswanth
2025-05-24 6d49d975598cd7f48e2b7347c2b83d8aac6a2f56
docs/layout-components.md
@@ -81,4 +81,13 @@
})
```
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.