MCPcopy Create free account
hub / github.com/TanStack/query / render

Method render

examples/lit/chat/src/message-bubble.ts:16–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 }
15
16 render() {
17 return html`
18 <div
19 class="flex ${
20 this.message.isQuestion ? 'justify-end' : 'justify-start'
21 }"
22 >
23 <div
24 class="max-w-[80%] rounded-lg p-3 ${
25 this.message.isQuestion
26 ? 'bg-blue-500 text-white'
27 : 'bg-gray-200 text-gray-800'
28 }"
29 >
30 ${this.message.content} ${this.inProgress ? '...' : null}
31 </div>
32 </div>
33 `
34 }
35}
36
37customElements.define('message-bubble', MessageBubble)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected