Skip to content
Kimenpre-v1documentation home
Color scheme

ki-menu-group

Use this element as a child of Menu.

Provide a group label and place menu items or dividers in its default slot. A group scopes its own exclusive radio selection.

API reference

When to use: name a set of related actions or scope exclusive radio items in a menu.

When not to use: standalone sections or nested menus.

Properties & attributes

AttributePropertyTypeDefaultDescription
labellabelstring''Visible and accessible group name.

Slots

SlotDescription
(default)The ki-menu-item and ki-divider children of the group.

CSS parts

PartDescription
labelThe visible group name.

CSS custom properties

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

TokenDescription
--ki-menu-font-familyFamily for action labels and the filter.
--ki-menu-group-fgForeground for group labels.
--ki-menu-group-label-weightWeight of group labels.
--ki-menu-inline-paddingStart and end inset of an action, group label, or filter.
--ki-menu-meta-font-sizeSize of metadata and group labels.
--ki-menu-meta-line-heightLine height of metadata and group labels.
--ki-menu-paddingSpace inside the popup.