cpn-basic-calendar

Document UDesign Calendar component usage rules and React integration examples.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

帮助开发人员在 AI 场景中正确使用 UDesign Calendar 组件,避免常见配置和导入错误,确保符合设计系统规范。

Core Features & Use Cases

  • 提供清晰的导入与基本用法示例,便于在应用中快速集成日历组件
  • 详细列出 API 参数及其含义,支持自定义日期、范围选择与事件回调
  • 实战用例:在表单中实现日期选择并进行范围校验

Quick Start

按照示例将 Calendar 引入你的应用中并根据需求调整 props。

Frequently Asked Questions about cpn-basic-calendar

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

FAQPage Schema
How do I integrate a calendar component in React without configuration errors?

To integrate a calendar component in React without configuration errors, import the UDesign Calendar module directly and apply the documented props. This enforces project conventions and validates inputs to prevent common setup mistakes.

Can I implement range selection and event callbacks for dates in a React calendar?

You can implement range selection and event callbacks in a React calendar by configuring the specific API parameters. The component supplies detailed prop definitions to support custom dates, range selection, and interactive event handling.

What is the best way to validate date ranges in a form using a design system calendar?

The best way to validate date ranges in a form using a design system calendar is to utilize the component's built-in event callbacks and props. Practical use cases include configuring date selection inputs to enforce form validation rules directly.

Do I need external libraries to use the UDesign Calendar component in my application?

You do not need external libraries to use the UDesign Calendar component in your application. It operates entirely by relying on the documented component props without introducing any additional dependencies beyond the standard React setup.

Why does my calendar UI component import fail to meet design system standards?

Your calendar UI component import fails to meet design system standards when project conventions are not strictly followed. Supplying clear usage rules and validating inputs during integration ensures the calendar complies with design specifications.