ki-menu-group
@kimen/elements/ki-menu-group- Source
- Agent reference
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
| Attribute | Property | Type | Default | Description |
|---|---|---|---|---|
label | label | string | '' | Visible and accessible group name. |
Slots
| Slot | Description |
|---|---|
| (default) | The ki-menu-item and ki-divider children of the group. |
CSS parts
| Part | Description |
|---|---|
label | The 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.
| Token | Description |
|---|---|
--ki-menu-font-family | Family for action labels and the filter. |
--ki-menu-group-fg | Foreground for group labels. |
--ki-menu-group-label-weight | Weight of group labels. |
--ki-menu-inline-padding | Start and end inset of an action, group label, or filter. |
--ki-menu-meta-font-size | Size of metadata and group labels. |
--ki-menu-meta-line-height | Line height of metadata and group labels. |
--ki-menu-padding | Space inside the popup. |