ant-design-guide

Ant Design Component Guide

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ant-design-guide" with this command: npx skills add jobsys/newbie-next/jobsys-newbie-next-ant-design-guide

Ant Design Component Guide

当用户询问有关 Ant Design 组件的使用、样式修改、或者需要编写特定 UI 功能时,请参考此指南。

⚠️ 关键指令 (Critical Instructions)

  • 查阅文档: Ant Design 版本更新较快(当前主流为 v5/v6),遇到复杂的 Props(如 Table columns, Form rules, Upload customRequest)时,必须使用浏览工具 (Browsing Tool) 读取对应组件的 URL 以获取准确的类型定义。

  • V5/V6 风格: 默认使用 Functional Components + Hooks。优先使用 CSS-in-JS (Antd Style) 或 style 属性,避免使用旧版的 Less 导入方式,除非用户特定要求。

  • App 包裹: 在使用 message , modal , notification 的静态方法时,推荐使用 <App> 组件包裹应用,并使用 App.useApp() hook 获取实例,以确保样式和 Context 正确继承。

📚 常用框架集成 (Integration)

如果用户询问如何初始化项目或配置环境:

🧩 组件索引 (Component Index)

  1. 通用与布局 (General & Layout)

构建页面骨架和基础元素

  1. 导航 (Navigation)

页面跳转与层级导航

  1. 数据录入 (Data Entry)

表单与交互控件

  1. 数据展示 (Data Display)

核心展示组件

  1. 反馈与交互 (Feedback)

交互反馈

  1. 主题定制 (Theme)

💡 使用场景示例

  • 表单场景: 结合 Form , Input , Select , Button 。使用 Form.useForm() 获取实例。

  • 后台列表: 结合 Table , Pagination , Space (操作栏)。

  • 详情页: 结合 Descriptions 或 Card 。

  • 全局反馈: 使用 <App> 组件包裹根节点,在子组件中使用 App.useApp() 调用 message 或 modal 。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

pro-components-guide

No summary provided by upstream source.

Repository SourceNeeds Review
General

fosun-skills-setup-guide

复星财富 OpenAPI 技能集(fosun-skills)的安装引导与安全提示说明。当用户首次安装 fosun-skills、或对 ClawHub 安装过程中的安全风险提示有疑问时使用。

Archived SourceRecently Updated
General

media-compress

Compress and convert images and videos using ffmpeg. Use when the user wants to reduce file size, change format, resize, or optimize media files. Handles common formats like JPG, PNG, WebP, MP4, MOV, WebM. Triggers on phrases like "compress image", "compress video", "reduce file size", "convert to webp/mp4", "resize image", "make image smaller", "batch compress", "optimize media".

Archived SourceRecently Updated
General

humanizer

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Archived SourceRecently Updated