cpn-basic-menu

Guide correct UDesign Menu component usage in React apps.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/UCloud-FE/udesign-cli --skill cpn-basic-menu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpn-basic-menu
Source: https://github.com/UCloud-FE/udesign-cli/tree/main/skills/cpn-basic-menu
Command: npx skills add https://github.com/UCloud-FE/udesign-cli --skill cpn-basic-menu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI 在使用 UDesign Menu 组件时可能引发的误用与实现不当需要规范化指导,本 Skill 提供正确的用法与示例以提升稳定性。

Core Features & Use Cases

  • 提供 Menu 组件的引入方式与基本用法示例,帮助新手快速上手。
  • 指定多选、禁用、折叠、全选等 API 参数的正确用法与注意事项,覆盖常见场景。
  • Use Case: 在构建 React 应用中的导航菜单、下拉菜单和多级子菜单时,提供一致的实现要点和示例。

Quick Start

Show a minimal React example rendering a Menu with several items to illustrate basic usage.

Frequently Asked Questions about cpn-basic-menu

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a basic React navigation menu using UDesign?

To prevent incorrect UDesign Menu implementations, ensure you apply correct usage guidance for API parameters like multi-select, collapse behavior, and submenu configurations. This guarantees stable React app navigation menus.

What is the correct way to configure multi-select and collapse behavior in a UDesign Menu?

Configuring multi-select and collapse behavior in a UDesign Menu requires applying the specific API parameters designated for these features. Following the correct usage guidance prevents implementation errors and ensures expected component stability.

How do I set up multi-level submenus in a React app with UDesign?

Setting up multi-level submenus in a React app with UDesign involves applying the specified submenu configuration parameters. This provides consistent implementation points for building complex dropdown menus and nested navigation structures.

Does the UDesign Menu component support disabled items and select all functionality?

Yes, the UDesign Menu component supports disabled items and select all functionality through its API parameters. Using these specified parameters correctly covers common application scenarios and prevents UI implementation mistakes.

Why does my UDesign Menu implementation behave incorrectly in my React application?

Your UDesign Menu implementation behaves incorrectly due to misuse of API parameters for features like multi-select or collapse behavior. Applying the correct usage guidance and examples prevents these improper implementations.