From 37822d074047c087da7145c25ec89624d3fba291 Mon Sep 17 00:00:00 2001 From: Emma Indal Date: Wed, 29 Sep 2021 14:22:22 +0200 Subject: [PATCH] add example in how to guide of Header without access to metadata Signed-off-by: Emma Indal --- docs/features/techdocs/how-to-guides.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/features/techdocs/how-to-guides.md b/docs/features/techdocs/how-to-guides.md index eb66db26a4..cca6e34907 100644 --- a/docs/features/techdocs/how-to-guides.md +++ b/docs/features/techdocs/how-to-guides.md @@ -185,6 +185,20 @@ directory at `packages/app/src/components/techdocs`, and import and use it in /> ``` +And if your Header do not need access to specific metadata, you can just use +something like: + +```tsx + + {() =>
} + + } +/> +``` + ### Without Search By default, the TechDocsReaderPage includes a in-context SearchBar where you can