DEV Community

Tiffany Hsu
Tiffany Hsu

Posted on

How to change Chainlit UI component

需要安裝 chainlit editable 版本

  1. 切換目錄到 Chainlit 原始碼的根目錄。
  2. 執行 pnpm install (或 yarn install,取決於你的專案設定)。
    • 執行 pnpm install 會產生 /chainlit/node_modules,這樣才能開始修改UI元件
  3. 修改 chainlit/frontend/src/components下的 UI 組件。
  4. 切換目錄到/chainlit/backend 執行 pnpm run buildUi 來編譯 UI。

Top comments (1)

Collapse
 
kiran_patil_f8a1e580c9165 profile image
Kiran Patil

How do I start using it after this change?

👋 Kindness is contagious

Discover fresh viewpoints in this insightful post, supported by our vibrant DEV Community. Every developer’s experience matters—add your thoughts and help us grow together.

A simple “thank you” can uplift the author and spark new discussions—leave yours below!

On DEV, knowledge-sharing connects us and drives innovation. Found this useful? A quick note of appreciation makes a real impact.

Okay