@gsa-tts/graymatter-ui 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -72,6 +72,7 @@ PUBLIC_DISCOVER_URL=https://your-discover-page.com
72
72
  ```svelte
73
73
  <DesktopSideNav
74
74
  showAppIcons={true}
75
+ hideDiscover={false}
75
76
  apiUrl="https://custom-api.com"
76
77
  chatUrl="https://custom-chat.com"
77
78
  consoleUrl="https://custom-console.com"
@@ -94,6 +95,22 @@ PUBLIC_DISCOVER_URL=https://your-discover-page.com
94
95
 
95
96
  **Priority Order:** Component props → Environment variables → Fallback (`#`)
96
97
 
98
+ ### Discover Icon Control
99
+
100
+ The discover icon can be conditionally shown/hidden using the `hideDiscover` prop for both desktop and mobile navigation:
101
+
102
+ ```svelte
103
+ <!-- Hide discover icon (default) -->
104
+ <DesktopSideNav showAppIcons={true} hideDiscover={true}>
105
+ <MobileBottomNav showAppIcons={true} hideDiscover={true}>
106
+
107
+ <!-- Show discover icon -->
108
+ <DesktopSideNav showAppIcons={true} hideDiscover={false}>
109
+ <MobileBottomNav showAppIcons={true} hideDiscover={false}>
110
+ ```
111
+
112
+ **Note:** The discover icon is hidden by default (`hideDiscover={true}`) since the discover page may not be available in all deployments. This gives you control over when to enable the discover functionality across all consuming applications.
113
+
97
114
  ## Available Components
98
115
 
99
116
  ### Web Components (Universal - Any Framework)