Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

index.html

50 lines1.3 KB

1<!doctype html>
2<html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6 <title>TanStack AI - Vanilla Chat</title>
7 <link
8 rel="icon"
9 type="image/svg+xml"
10 href="https://tanstack.com/favicon-light.svg"
11 media="(prefers-color-scheme: light)"
12 />
13 <link
14 rel="icon"
15 type="image/svg+xml"
16 href="https://tanstack.com/favicon-dark.svg"
17 media="(prefers-color-scheme: dark)"
18 />
19 <link rel="stylesheet" href="/src/style.css" />
20 </head>
21 <body>
22 <div class="container">
23 <header>
24 <h1>πŸ’¬ TanStack AI Chat</h1>
25 <p>Vanilla Client Example</p>
26 </header>
27​
28 <div class="chat-container">
29 <div id="messages" class="messages"></div>
30​
31 <div class="input-container">
32 <form id="chat-form">
33 <textarea
34 id="message-input"
35 placeholder="Type your message..."
36 rows="1"
37 ></textarea>
38 <button type="submit" id="send-button" disabled>
39 <span>Send</span>
40 </button>
41 </form>
42 </div>
43​
44 <div id="error" class="error" style="display: none"></div>
45 </div>
46 </div>
47​
48 <script type="module" src="/src/main.js"></script>
49 </body>
50</html>