Skip to content

UserMenuLink

UserMenuLink = object

Defined in: packages/ui/src/types.ts:1296

A navigation link in the user menu dropdown.

When action is provided, the link is automatically hidden if the current user lacks permission for that action (e.g., an “Admin” link gated on admin access).

UserMenuProps which accepts an array of these links.

optional action: ClientDescriptor

Defined in: packages/ui/src/types.ts:1302

If provided, the link is hidden when the user lacks permission.


label: string

Defined in: packages/ui/src/types.ts:1298

Display label.


to: string

Defined in: packages/ui/src/types.ts:1300

Route path.