You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/using_custom_header.rst
+3-18Lines changed: 3 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ Custom Header Component
6
6
Overview
7
7
--------
8
8
9
-
The ``Header`` component is used to display a header with a provided ``logo``, ``mainMenuItems``,
9
+
The ``Header`` component is used to display a header with a provided ``mainMenuItems``,
10
10
``secondaryMenuItems``, and ``userMenuItems`` props. If props are provided, the component will use them; otherwise,
11
-
If any of the props ``(logo, mainMenuItems, secondaryMenuItems, userMenuItems)`` are not provided, default
11
+
If any of the props ``(mainMenuItems, secondaryMenuItems, userMenuItems)`` are not provided, default
12
12
items are displayed. This component provides flexibility in customization, making it suitable for a wide
13
13
range of applications.
14
14
@@ -17,21 +17,6 @@ Props Details
17
17
18
18
The `Header` component accepts the following **optional** props for customization:
19
19
20
-
``logo``
21
-
*******
22
-
23
-
The logo prop is an object containing `src`, `alt`, and `href` properties. If not passed, LOGO_URL from config will be used.
24
-
It is displayed on the left of the header in the desktop screen and in the center of the header on the mobile screen.
25
-
26
-
Example:
27
-
::
28
-
29
-
{
30
-
src: 'path/to/logo.png',
31
-
alt: 'Logo Alt Text',
32
-
href: '/home'
33
-
}
34
-
35
20
``mainMenuItems``
36
21
*****************
37
22
@@ -66,7 +51,7 @@ Example:
66
51
secondaryMenuItems
67
52
******************
68
53
69
-
The secondary menu items has same structure as ``mainMenuItems``. On desktop screen, These items are displayed on the right of header just before the userMenu avatar and on mobile screen,
54
+
The secondary menu items has same structure as ``mainMenuItems``. On desktop screen, these items are displayed on the right of header just before the userMenu avatar and on mobile screen,
70
55
these items are displayed below the mainMenu items in dropdown.
0 commit comments