mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-19 11:41:04 +02:00
Initial Commit 🚀 🚀
This commit is contained in:
commit
4f2a629340
444 changed files with 76863 additions and 0 deletions
26
ui/src/components/flow/nodes/BaseHandle.tsx
Normal file
26
ui/src/components/flow/nodes/BaseHandle.tsx
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import { Handle, HandleProps } from "@xyflow/react";
|
||||
import { forwardRef } from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export type BaseHandleProps = HandleProps;
|
||||
|
||||
export const BaseHandle = forwardRef<HTMLDivElement, BaseHandleProps>(
|
||||
({ className, children, ...props }, ref) => {
|
||||
return (
|
||||
<Handle
|
||||
ref={ref}
|
||||
{...props}
|
||||
className={cn(
|
||||
"h-[11px] w-[11px] rounded-full border border-slate-300 bg-slate-100 transition dark:border-secondary dark:bg-secondary",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</Handle>
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
BaseHandle.displayName = "BaseHandle";
|
||||
Loading…
Add table
Add a link
Reference in a new issue