Skip to content

Commit 6772218

Browse files
feat: add ChatInput component with utility functions and demo integration
1 parent f3ac75c commit 6772218

File tree

7 files changed

+1767
-0
lines changed

7 files changed

+1767
-0
lines changed

apps/site/src/demos/ChatInputDemo.tsx

Lines changed: 767 additions & 0 deletions
Large diffs are not rendered by default.

apps/site/src/demos/SidebarDemo.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ import VirtualListDemo from './VirtualListDemo'
9494
import UploadDemo from './UploadDemo'
9595
import CodeBlockDemo from './CodeBlockDemo'
9696
import WorkflowCanvasDemo from './WorkflowCanvasDemo'
97+
import ChatInputDemo from './ChatInputDemo'
9798

9899
const SidebarDemo = () => {
99100
const [activeComponent, setActiveComponent] = useState<
@@ -126,6 +127,7 @@ const SidebarDemo = () => {
126127
| 'unitInput'
127128
| 'numberInput'
128129
| 'textArea'
130+
| 'chatInput'
129131
| 'snackbar'
130132
| 'dataTable'
131133
| 'drawer'
@@ -347,6 +349,8 @@ const SidebarDemo = () => {
347349
return <NumberInputDemo />
348350
case 'textArea':
349351
return <TextAreaDemo />
352+
case 'chatInput':
353+
return <ChatInputDemo />
350354
case 'otpInput':
351355
return <OTPInputDemo />
352356
case 'alerts':
@@ -600,6 +604,16 @@ const SidebarDemo = () => {
600604
isSelected: activeComponent === 'textArea',
601605
onClick: () => setActiveComponent('textArea'),
602606
},
607+
{
608+
label: 'Chat Input',
609+
leftSlot: (
610+
<MessageCircle
611+
style={{ width: '16px', height: '16px' }}
612+
/>
613+
),
614+
isSelected: activeComponent === 'chatInput',
615+
onClick: () => setActiveComponent('chatInput'),
616+
},
603617
{
604618
label: 'Multi Value Input',
605619
leftSlot: (

0 commit comments

Comments
 (0)