Replies: 1 comment 1 reply
-
Open prop is a state, put it in a client component with useState |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to arrange another "search bar" inside a specific DocPage, the UX is like the left pane "search bar"? (i mean, when clicked, the search dialog pop up)
I tried
<DocsPage toc={[]} full={true}> <DocsTitle>{
search}</DocsTitle> <DocsBody> <CustomSearchDialog open={true} onOpenChange={onOpenChange} />; </DocsBody> </DocsPage>
The dialog will pop up automatically
If setting property open={false}. There is no "search bar" on the page.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions