@@ -60,6 +60,13 @@ export interface SideNavigationProps extends BaseComponentProps {
6060 * Although there is no technical limitation to the nesting level,
6161 * our UX recommendation is to use only one level.
6262 *
63+ * #### Section Group
64+ * Aggregates a set of items that are conceptually related to each other, and can be displayed under a single heading to provide further organization.
65+ * You can nest sections, links, link groups and expandable link groups within a section group depending on your information architecture needs.
66+ * - `type`: `'section-group'`.
67+ * - `title` (string) - Specifies the text to display as a title of the section group.
68+ * - `items` (array) - Specifies the content of the section header group. You can use `Section`, `Link`, `LinkGroup`, `ExpandableLinkGroup`.
69+ *
6370 * #### LinkGroup
6471 * Object that represents a group of links.
6572 * - `type`: `'link-group'`.
@@ -142,6 +149,11 @@ export namespace SideNavigationProps {
142149 defaultExpanded ?: boolean ;
143150 }
144151
152+ export interface SectionGroup {
153+ type : 'section-group' ;
154+ title : string ;
155+ items : ReadonlyArray < Section | Link | LinkGroup | ExpandableLinkGroup > ;
156+ }
145157 export interface LinkGroup {
146158 type : 'link-group' ;
147159 text : string ;
@@ -157,7 +169,7 @@ export namespace SideNavigationProps {
157169 defaultExpanded ?: boolean ;
158170 }
159171
160- export type Item = Divider | Link | Section | LinkGroup | ExpandableLinkGroup ;
172+ export type Item = Divider | Link | Section | LinkGroup | ExpandableLinkGroup | SectionGroup ;
161173
162174 export interface ChangeDetail {
163175 item : Section | ExpandableLinkGroup ;
@@ -168,7 +180,7 @@ export namespace SideNavigationProps {
168180 export interface FollowDetail extends BaseNavigationDetail {
169181 text ?: string ;
170182 href : string ;
171- type ?: 'link' | 'link-group' | 'expandable-link-group' ;
183+ type ?: 'link' | 'link-group' | 'expandable-link-group' | 'section-header' ;
172184 info ?: React . ReactNode ;
173185 }
174186}
0 commit comments