Skip to content
Kimenpre-v1documentation home
Color scheme

ki-sidebar-group

Place related destinations in a group inside a Sidebar. Its heading names the list in both expanded and collapsed modes.

Theme for this example
Color scheme for this example
Members Billing
<ki-sidebar label="Main">
<ki-sidebar-group label="Workspace">
<ki-sidebar-item href="#members" current>Members</ki-sidebar-item>
<ki-sidebar-item href="#billing">Billing</ki-sidebar-item>
</ki-sidebar-group>
</ki-sidebar>

When to use: give related sidebar destinations a common heading.

When not to use: as a destination or outside ki-sidebar.

Properties & attributes

AttributePropertyTypeDefaultDescription
labellabelstring–Visible group heading and accessible name of the nested list.

Slots

SlotDescription
(default)One or more ki-sidebar-item routes.

CSS parts

PartDescription
headingGroup heading, visually hidden in the rail.
listList named by the group heading.

CSS custom properties

The public styling contract of ki-sidebar-group: reassign these tokens at :root or on a subtree — never override internals.

TokenDescription
--ki-sidebar-font-familyTypeface of sidebar controls and copy.
--ki-sidebar-group-backdrop-filterComplete backdrop filter behind the group heading.
--ki-sidebar-group-bgGroup heading background.
--ki-sidebar-group-bg-imageOptional image over the heading background.
--ki-sidebar-group-fgGroup heading ink, with contrast-more support.
--ki-sidebar-group-font-familyGroup heading typeface.
--ki-sidebar-group-font-sizeGroup heading font size.
--ki-sidebar-group-gapSpace before a group of routes.
--ki-sidebar-group-line-heightGroup heading line height.
--ki-sidebar-item-gapGap between rows.
--ki-sidebar-item-paddingInline inset of an expanded row.
--ki-sidebar-item-weightWeight of the navigation label.