Untitled

mail@pastecode.io avatar
unknown
typescript
2 years ago
562 B
0
Indexable
Never
import { Handle, Position, NodeProps} from "react-flow-renderer";
import {FC} from 'react';
import { STypeLabel } from "./styles";


const Columns: FC<NodeProps> = (data, isConnectable) => {
  return (
    <div style={{position: "relative"}}>
    <Handle type="target" position={Position.Left} style={{left: -8}}
    onConnect={(params) => console.log("handle onConnect", params)} isConnectable={isConnectable}/>
        <label>{data.data.label}</label>
        <STypeLabel>input</STypeLabel>
    </div>        

  );
};

export default Columns;