xc-antd
v2.2.31
Published
React and Ant Design enterprise components for forms, tables and business workflows
Maintainers
Readme
xc-antd
React 19 + Ant Design 6 enterprise component library, published as ESM TypeScript/TSX source.
Install
npm install xc-antd antd @ant-design/icons react react-domUsage
import { CrudTable, SchemaForm, TextField } from 'xc-antd'
import 'xc-antd/style'The package exports src/index.ts directly and does not provide a CommonJS
build. Use a modern bundler such as Vite, and configure Tailwind CSS v4 so source
utility classes can be generated:
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [react(), tailwindcss()],
})Main components include:
TextField: unified read/edit fields driven byvalueTypeCrudTable: request, search, pagination, selection and column settingsSchemaForm: typed configuration-driven formsFormGroup: grouped form layoutActionDrawerandActionModal: standardized action overlaysImageUpload: image upload, preview, validation and advanced croppingGroupedSelect: searchable grouped multi-select with optional editing actionsListPanelandListTree: searchable list navigation with context menus;ListTreealso provides validated three-zone drag and immutable move resultsSensitiveData: sensitive text/image masking with local or requested revealRichTextEditor: React 19-compatible rich HTML editing and read-only previewAmapEditor: AMap marker, polyline, POI search and map-control workflowsQRCode: SVG/Canvas QR codes with logo and business-state overlaysVideoPlayerandMusicPlayer: XGPlayer media playback with built-in and streaming plugin configurationPermissionProvider,PermissionGuard, andusePermission: shared permission-code checks for rendering and business logic
See the repository documentation app for complete examples.
Agent Skills
This package includes version-matched Agent Skills. After installing the package, install the consumer skill into the current project:
npx xc-antd-skills installThis installs xc-antd plus the dedicated xc-antd-image-upload,
xc-antd-rich-text-editor, xc-antd-amap-editor, xc-antd-qr-code,
xc-antd-media-player, and xc-antd-permission Skills under .agents/skills. Re-run with --force
after upgrading the package.
Component-library maintainers can also install the authoring Skill:
npx xc-antd-skills install --all --forceUse --target <directory> to select another Agent Skills directory. Start a new
AI Agent session after installation so the new skills are discovered.
