cpn-basic-date-picker

Configure UDesign DatePicker props for React form UIs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps AI avoid incorrect usage of the UDesign DatePicker by providing correct import patterns, prop configurations, and usage constraints required to implement DatePicker in React forms.

Core Features & Use Cases

  • Accurate guidance for daily DatePicker usage in both 'date' and 'month' modes.
  • Step-by-step examples for common props such as format, size, locale, nullable, and popoverProps.
  • Use cases include building accurate form UIs, validating correct tokenization of format patterns, and providing safe demo code under constraints.

Quick Start

Load this skill when you need to correctly implement the UDesign DatePicker in a React form.

Frequently Asked Questions about cpn-basic-date-picker

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

FAQPage Schema
How do I configure DatePicker props for locale and timezone in React forms?

To configure DatePicker props for locale and timezone in React forms, set the locale prop for regional formatting and use moment.js tokens for the format prop to ensure accurate date parsing and display.

What is the correct way to implement a month picker using UDesign DatePicker?

Implementing a month picker using UDesign DatePicker requires configuring the component to support month type mode, allowing users to select entire months rather than specific dates within React form structures.

Does UDesign DatePicker support nullable values for form validation?

UDesign DatePicker supports nullable values for form validation by utilizing the nullable prop, ensuring the form correctly handles empty states without throwing unsafe parsing errors.

Why does my DatePicker format tokenization fail in React?

DatePicker format tokenization fails when using incorrect moment.js pattern tokens, so validating the format string against supported tokenization patterns ensures deterministic and safe date rendering.

Can I use TypeScript or external libraries with UDesign DatePicker?

You cannot use TypeScript or external libraries with UDesign DatePicker, as the component constraints explicitly forbid them to prevent unsafe patterns and enforce deterministic demo code generation.

How to set up DatePicker size and popoverProps for React UI development?

Set up DatePicker size and popoverProps for React UI development by passing the size attribute for dimensions and popoverProps to control the floating calendar container's behavior and positioning.