<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>React | 面条的草稿箱</title><description>无原创，纯转发</description><link>http://drafts.miantiao.me</link><item><title>termcn：让 React 构建终端 UI 像 shadcn 一样简单如果你正在开发命令行工具（CLI）或终端应用程序，并希望拥有美观、交互性强的界面，那么 termcn 会是一个不错的选择</title><link>http://drafts.miantiao.me/posts/141</link><guid isPermaLink="true">http://drafts.miantiao.me/posts/141</guid><pubDate>Thu, 18 Jun 2026 02:50:08 GMT</pubDate><content:encoded>termcn：让 &lt;mark class=&quot;highlight&quot;&gt;React&lt;/mark&gt; 构建终端 UI 像 shadcn 一样简单&lt;br /&gt;&lt;br /&gt;如果你正在开发命令行工具（CLI）或终端应用程序，并希望拥有美观、交互性强的界面，那么 termcn 会是一个不错的选择。&lt;br /&gt;&lt;br /&gt;termcn 是一套基于 Ink 和 OpenTUI 构建的 &lt;mark class=&quot;highlight&quot;&gt;React&lt;/mark&gt; 终端 UI 组件库。它采用了与流行前端 UI 库 shadcn/ui 类似的直接分发模式，允许开发者通过简单的命令行，直接将组件代码添加到自己的项目中。&lt;br /&gt;&lt;br /&gt;&lt;b&gt;核心亮点&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;•   &lt;b&gt;渐进式添加&lt;/b&gt;：支持通过包管理器（如 pnpm、npm 或 yarn）以 shadcn CLI 的方式按需添加组件，例如 &lt;code&gt;pnpm dlx shadcn add @termcn/alert&lt;/code&gt;，保持项目的轻量。&lt;br /&gt;•   &lt;b&gt;常用组件开箱即用&lt;/b&gt;：提供表格（Table）、柱状图（Bar Chart）、等待动画（Spinner）、提示框（Alert）、工具调用展示（Tool Call）和徽章（Badge）等终端交互必备元素。&lt;br /&gt;•   &lt;b&gt;丰富的主题配色&lt;/b&gt;：内置了 Catppuccin、Dracula、Nord、One Dark 等数十种经典且受欢迎的终端配色方案，轻松搭配出理想的视觉风格。&lt;br /&gt;&lt;br /&gt;无论是为你的开源工具制作更友好的 CLI 界面，还是在为 AI 代理开发终端控制台，termcn 都能帮助你快速构建出高颜值的终端交互体验。&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://www.termcn.dev/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;https://www.termcn.dev/&quot;&gt;https://www.termcn.dev/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;/search/result?q=%23%E5%89%8D%E7%AB%AF%E5%BC%80%E5%8F%91&quot; title=&quot;#前端开发&quot;&gt;#前端开发&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23React&quot; title=&quot;#React&quot;&gt;#React&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23%E5%91%BD%E4%BB%A4%E8%A1%8C%E5%B7%A5%E5%85%B7&quot; title=&quot;#命令行工具&quot;&gt;#命令行工具&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23UI%E7%BB%84%E4%BB%B6%E5%BA%93&quot; title=&quot;#UI组件库&quot;&gt;#UI组件库&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23CLI&quot; title=&quot;#CLI&quot;&gt;#CLI&lt;/a&gt;&lt;a class=&quot;tgme_widget_message_link_preview&quot; href=&quot;https://www.termcn.dev/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;A collection of beautifully designed, accessible, and customizable terminal UI components. Built on Ink and OpenTUI. Works with shadcn/ui.&quot;&gt;
  
  &lt;div class=&quot;link_preview_site_name accent_color&quot;&gt;termcn&lt;/div&gt;
  &lt;img class=&quot;link_preview_image&quot; alt=&quot;termcn&quot; src=&quot;https://drafts.miantiao.me/static/https://cdn4.telesco.pe/file/Vgm3MjjGNZJvm4GPihcUhaAs12qg9ExVDiDg2DTCTGsiHK80qLCVlNxIn3cZm_i6YFl1DEZZ2mSYGhqwbPdY_Bkv_BFlppfE8BJNZgOax-vALpFrveu02lKkqO7q2Jnc4SGvDohe4-_sAjHpybFhMx3gGaoNDLQ8wjqWK8JuWKoaKdBE6avW05Z2FSJ8GDrEREOV0SxwEGP9OWZOfxCQNuc-yN2qnEXmZ6hb1MgQcfzD_6XlocL-c_oD1dU4iwwsb4_m3WtLrPXpsEL_BtQ4tkt3h64F-kjZL3s_WjGGlWpp1Jkh7Ib_y3Gwv22c0k-7hTHxZPJi-4NSb4zDOmlkQQ.jpg&quot; width=&quot;1200&quot; height=&quot;630&quot; loading=&quot;eager&quot; /&gt;
  
  &lt;div class=&quot;link_preview_description&quot;&gt;A collection of beautifully designed, accessible, and customizable terminal UI components. Built on Ink and OpenTUI. Works with shadcn/ui.&lt;/div&gt;
&lt;/a&gt;</content:encoded></item></channel></rss>