alibaba / ChatUI

The UI design language and React library for Conversational UI
https://chatui.io
MIT License
2.61k stars 277 forks source link

request for a demo that showing a FileCard in ChatSDK config #144

Open cdll opened 2 months ago

cdll commented 2 months ago

What problem does this feature solve? (这个功能解决了什么问题) ChatSDK中通过config配置快速展现一个FileCard

Describe the solution you'd like (描述您想要的解决方案) use a part of config like

{
  type: 'card',
  content: {
    code: 'file',
    // .. some other FileCard props
  },
}

in box.config.messages array to display a card such as : https://chatui.io/components/file-card

What does the proposed API look like? (你期望的 API 是怎样的) 配置式的