black bar simulete side-bar added and prompt node created, need to try drag and drop
This commit is contained in:
parent
1cc5a31127
commit
7f1685e767
8 changed files with 105 additions and 7 deletions
15
space_flow/src/CustomNodes/PromptNode/index.tsx
Normal file
15
space_flow/src/CustomNodes/PromptNode/index.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { Handle, Position } from 'reactflow';
|
||||
|
||||
|
||||
export default function PromptNode({data}){
|
||||
console.log(data.template)
|
||||
return(
|
||||
<div
|
||||
className='prompt-Node relative bg-white h-16 w-40 border rounded-sm solid border-black flex flex-col justify-center'>
|
||||
<Handle type='target' position={Position.Left}></Handle>
|
||||
<label className='absolute text-sm -top-3 left-1 bg-white w-14 text-center'> Prompt</label>
|
||||
<div className='w-full h-10 truncate bg-slate-50 text-xs'> {data.template}</div>
|
||||
<Handle type='source' position={Position.Right}></Handle>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue