Skip to content

How do i add a client react component to the sidebar #630

Answered by fuma-nama
spiritoftime asked this question in Q&A
Discussion options

You must be logged in to vote

I tried to customise app\docs\layout.tsx, as follows:

You have overridden the default sidebar item, so for your new item component you also need to inherit all functionalities of the original one. It doesn't make sense to preserve the original one if you have already overridden it.

You can copy the original implementation from our source code.

I'll suggest to add the indicator component to the page instead

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@spiritoftime
Comment options

Answer selected by spiritoftime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants