- Prop
items- Type
MenuItem[]- Default
- —
- Requirement
- required
- Description
- —
Docs Components Navigation
DropdownMenu
- parts
- —
- nodes
- —
- size
- —
- part
- —
- parts
- —
- nodes
- —
- size
- —
- part
- —
- parts
- —
- nodes
- —
- size
- —
- part
- —
- parts
- —
- nodes
- —
- size
- —
- part
- —
- parts
- —
- nodes
- —
- size
- —
- part
- —
Installation
API Reference
Import
import { DropdownMenu } from "@grassroot/ui-react";
Props
Prop
Type
Default
Requirement
Description
itemsMenuItem[]—
required
—
headerstring | undefined—
optional
Mono uppercase section header at top of menu.
defaultOpenboolean | undefinedfalseoptional
Render initially open — handy for layout/stories.
classNamestring | undefined—
optional
—
align"start" | "end" | undefined"start" (left)optional
Horizontal edge menu anchors to.
triggerClassNamestring | undefined—
optional
Override trigger button styling (e.g.
- Prop
header- Type
string | undefined- Default
- —
- Requirement
- optional
- Description
- Mono uppercase section header at top of menu.
- Prop
defaultOpen- Type
boolean | undefined- Default
false- Requirement
- optional
- Description
- Render initially open — handy for layout/stories.
- Prop
className- Type
string | undefined- Default
- —
- Requirement
- optional
- Description
- —
- Prop
align- Type
"start" | "end" | undefined- Default
"start" (left)- Requirement
- optional
- Description
- Horizontal edge menu anchors to.
- Prop
triggerClassName- Type
string | undefined- Default
- —
- Requirement
- optional
- Description
- Override trigger button styling (e.g.
Content regions
children
Import
import { DropdownMenu } from "@grassroot/ui-vue";
Props
Prop
Type
Default
Requirement
itemsreadonly DropdownMenuEntry[]—
required
headerstring | undefinedundefinedoptional
defaultOpenbooleanfalseoptional
align"start" | "end""start"optional
triggerClassNamestring | undefinedundefinedoptional
- Prop
items- Type
readonly DropdownMenuEntry[]- Default
- —
- Requirement
- required
- Prop
header- Type
string | undefined- Default
undefined- Requirement
- optional
- Prop
defaultOpen- Type
boolean- Default
false- Requirement
- optional
- Prop
align- Type
"start" | "end"- Default
"start"- Requirement
- optional
- Prop
triggerClassName- Type
string | undefined- Default
undefined- Requirement
- optional
Content regions
default
Import
import { Component } from "@angular/core";
import { GrassrootDropdownMenu } from "@grassroot/ui-angular";
Props
Prop
Type
Default
Requirement
itemsreadonly DropdownMenuEntry[]—
required
headerstring—
optional
defaultOpenbooleanfalseoptional
align"start" | "end""start"optional
triggerClassNamestring—
optional
- Prop
items- Type
readonly DropdownMenuEntry[]- Default
- —
- Requirement
- required
- Prop
header- Type
string- Default
- —
- Requirement
- optional
- Prop
defaultOpen- Type
boolean- Default
false- Requirement
- optional
- Prop
align- Type
"start" | "end"- Default
"start"- Requirement
- optional
- Prop
triggerClassName- Type
string- Default
- —
- Requirement
- optional
Content regions
default
Import
import { DropdownMenu } from "@grassroot/ui-svelte";
Props
Prop
Type
Default
Requirement
itemsreadonly DropdownMenuItem[]—
required
headerstring—
optional
defaultOpenbooleanfalseoptional
classNamestring—
optional
align"start" | "end""start"optional
triggerClassNamestring—
optional
- Prop
items- Type
readonly DropdownMenuItem[]- Default
- —
- Requirement
- required
- Prop
header- Type
string- Default
- —
- Requirement
- optional
- Prop
defaultOpen- Type
boolean- Default
false- Requirement
- optional
- Prop
className- Type
string- Default
- —
- Requirement
- optional
- Prop
align- Type
"start" | "end"- Default
"start"- Requirement
- optional
- Prop
triggerClassName- Type
string- Default
- —
- Requirement
- optional
Content regions
children
Import
import { DropdownMenu } from "@grassroot/ui-solid";
Props
Prop
Type
Default
Requirement
itemsDropdownMenuItem[]—
required
headerstring—
optional
defaultOpenbooleanfalseoptional
classNamestring—
optional
align"start" | "end""start"optional
triggerClassNamestring—
optional
- Prop
items- Type
DropdownMenuItem[]- Default
- —
- Requirement
- required
- Prop
header- Type
string- Default
- —
- Requirement
- optional
- Prop
defaultOpen- Type
boolean- Default
false- Requirement
- optional
- Prop
className- Type
string- Default
- —
- Requirement
- optional
- Prop
align- Type
"start" | "end"- Default
"start"- Requirement
- optional
- Prop
triggerClassName- Type
string- Default
- —
- Requirement
- optional
Content regions
children