cpn-basic-table

Configure UDesign Table components with column definitions and dataSource binding.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Table usage in UDesign can be error-prone when developers misconfigure columns, dataSource, and related features. This skill guides AI to consistently construct valid Table usage demonstrations and promote best practices.

Core Features & Use Cases

  • Provides clear patterns for defining columns, binding dataSource, and ensuring keys exist.
  • Demonstrates common capabilities such as search, scroll, and fixed columns in representative examples.
  • Enforces non-TypeScript JSX usage and avoidance of external UI libraries to maintain design-system consistency.

Quick Start

Generate a minimal Table example with two columns and a simple dataSource to illustrate basic usage.

Frequently Asked Questions about cpn-basic-table

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

FAQPage Schema
How do I configure columns and bind dataSource in a React table component?

To configure columns and bind dataSource in a React table, define column objects and map data to the dataSource property. This skill guides AI to generate valid JSX table patterns ensuring unique row keys exist for accurate data binding.

What is the best way to implement search and scroll features in a React design system table?

The best way to implement search and scroll in a React design system table involves configuring specific component properties. This skill provides representative JSX examples demonstrating these common capabilities without external UI libraries.

Can I use TypeScript when building JSX table components for a design system?

You cannot use TypeScript when building these table components. The skill enforces non-TypeScript JSX usage to maintain design-system consistency and constructs valid table demonstrations using plain JSX without external dependencies.

Why does my React table render incorrectly when binding dataSource?

Your React table may render incorrectly due to missing unique row keys or misconfigured columns. This skill guides AI to consistently enforce key constraints and validate column definitions to prevent common table rendering errors.

How do I set up fixed columns in a React data table?

Setting up fixed columns requires specific configuration properties on your column definitions. This skill provides clear patterns and examples for implementing fixed columns alongside basic scroll and search features in React tables.