diff --git a/packages/editor/README.md b/packages/editor/README.md index 2bb42c8ca1d982..4142a1f68a51a5 100644 --- a/packages/editor/README.md +++ b/packages/editor/README.md @@ -254,7 +254,17 @@ _Returns_ ### DocumentBar -Undocumented declaration. +This component renders a navigation bar at the top of the editor. It displays the title of the current document, a back button (if applicable), and a command center button. It also handles different states of the document, such as "not found" or "unsynced". + +_Usage_ + +```jsx + +``` + +_Returns_ + +- `JSX.Element`: The rendered DocumentBar component. ### DocumentOutline diff --git a/packages/editor/src/components/document-bar/index.js b/packages/editor/src/components/document-bar/index.js index 78dd676c7f79b8..6e487e5afb46ac 100644 --- a/packages/editor/src/components/document-bar/index.js +++ b/packages/editor/src/components/document-bar/index.js @@ -49,6 +49,18 @@ const GLOBAL_POST_TYPES = [ const MotionButton = motion( Button ); +/** + * This component renders a navigation bar at the top of the editor. It displays the title of the current document, + * a back button (if applicable), and a command center button. It also handles different states of the document, + * such as "not found" or "unsynced". + * + * @example + * ```jsx + * + * ``` + * + * @return {JSX.Element} The rendered DocumentBar component. + */ export default function DocumentBar() { const { postType,