function / @typed/ui/Menu

Group

Renders a labelled ARIA group inside menu content.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Command grouping
Since
1.0.0

Import

import { Group } from "@typed/ui/Menu";

Signatures

export declare function Group<const Options extends GroupOptions, const Host extends HostResult = never>(options: Options, host?: Dom.HostOverride<Dom.RenderHostProps<Options, GroupProps<Options>>, Options["content"], Host>): Fx<RenderEvent, Renderable.Error<Options | Host>, Renderable.Services<Options | Host> | Scope.Scope | RenderTemplate>;

Examples

import * as Menu from "@typed/ui/Menu";

const view = Menu.Group({ label: "View", content: "Choices" });

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source