Files
ragflow/web/src/components/xyflow/base-node.tsx
balibabu 24ab857471 Feat: Adjust the style of the canvas node #10703 (#10795)
### What problem does this PR solve?

Feat: Adjust the style of the canvas node #10703


### Type of change


- [x] New Feature (non-breaking change which adds functionality)
2025-10-27 10:36:36 +08:00

22 lines
503 B
TypeScript

import { forwardRef, HTMLAttributes } from 'react';
import { cn } from '@/lib/utils';
export const BaseNode = forwardRef<
HTMLDivElement,
HTMLAttributes<HTMLDivElement> & { selected?: boolean }
>(({ className, selected, ...props }, ref) => (
<div
ref={ref}
className={cn(
'relative rounded bg-card text-card-foreground',
className,
selected ? 'border-muted-foreground shadow-lg' : '',
)}
tabIndex={0}
{...props}
/>
));
BaseNode.displayName = 'BaseNode';