File tree Expand file tree Collapse file tree 7 files changed +1767
-0
lines changed
packages/blend/lib/components/ChatInput Expand file tree Collapse file tree 7 files changed +1767
-0
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ import VirtualListDemo from './VirtualListDemo'
9494import UploadDemo from './UploadDemo'
9595import CodeBlockDemo from './CodeBlockDemo'
9696import WorkflowCanvasDemo from './WorkflowCanvasDemo'
97+ import ChatInputDemo from './ChatInputDemo'
9798
9899const 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 : (
You can’t perform that action at this time.
0 commit comments