讨论

shadcn Component Visual Adapter

来自 Wikiprompt,自由的提示词百科全书

André Farias

2026年6月8日

shadcn Component Visual Adapter A comprehensive workflow prompt for refactoring an existing React component to match shadcn visual design while preserving business logic and props. Includes analysis, dependency resolution, refactoring rules, and output format.

提示词内容收藏

此提示词为英文,适用于所有 AI 模型。

# shadcn Component Visual Adapter ## Objective Refactor the existing `${component_name}` component located at `${component_file_path}` to match the visual design, structure, and behavior of the reference component available at: > ${install_command:bunx --bun shadcn@latest add accordion} ${referenc...

登录以查看完整提示词

登录以继续

用法

此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。

为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。

参考资料

分类:coding| prompts.chat| shadcn| react

讨论