LAYER / src /components /nodes /GroupLabelNode.tsx
Claude
Add "Group by Layer" — cluster nodes by Senses/Brain/Face
b4ad384 unverified
Raw
History Blame Contribute Delete
432 Bytes
"use client";
export type GroupLabelNodeData = {
label: string;
color: string;
};
export default function GroupLabelNode({ data }: { data: GroupLabelNodeData }) {
return (
<div
className="pointer-events-none select-none text-center font-semibold text-xs tracking-[0.25em] uppercase"
style={{ color: data.color, width: 320, textShadow: `0 0 16px ${data.color}66` }}
>
{data.label}
</div>
);
}