mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-06 11:27:54 +02:00
feat(v2): allow to change location of search bar (#4199)
* feat(v2): allow to change location of search bar * add SearchBar swizzle comment * quickfix for NavbarItem theme config * typing quickfix * doc typo Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
2a12869fc0
commit
b3b658f687
10 changed files with 91 additions and 24 deletions
|
@ -8,8 +8,9 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|||
|
||||
export type DocsVersionPersistence = 'localStorage' | 'none';
|
||||
|
||||
// TODO improve
|
||||
// TODO improve types, use unions
|
||||
export type NavbarItem = {
|
||||
type?: string | undefined;
|
||||
items?: NavbarItem[];
|
||||
label?: string;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue