-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathVialNode.jsx
More file actions
32 lines (29 loc) · 947 Bytes
/
VialNode.jsx
File metadata and controls
32 lines (29 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React from 'react';
import { Handle } from '@xyflow/react';
import vialIcon from './vial-svgrepo-com.svg';
export default function VialNode({ data }) {
return (
<div style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center'
}}>
<img src={vialIcon} alt="Vial" width="100 px" style={{
// filter: 'hue-rotate(180deg)', // Change color
// // or
filter: 'invert(1)', // Invert colors
}}/>
<div style={{
fontSize: '12px',
textAlign: 'center',
marginBottom: '8px',
color: 'white',
fontWeight: 'bold',
}}>
{data.label}<br></br>Not implemented yet
</div>
<Handle type="target" position="top" style={{ background: '#555' }} />
<Handle type="source" position="bottom" style={{ background: '#555' }} />
</div>
);
}