Skip to main content

mind-elixir.nodeobj

Home > mind-elixir > NodeObj

NodeObj type

MindElixir node object

Signature:

export type NodeObj = {
topic: string;
id: Uid;
style?: {
fontSize?: string;
color?: string;
background?: string;
fontWeight?: string;
};
children?: NodeObj[];
tags?: string[];
icons?: string[];
hyperLink?: string;
expanded?: boolean;
direction?: Left | Right;
image?: {
url: string;
width: number;
height: number;
fit?: 'fill' | 'contain' | 'cover';
};
branchColor?: string;
parent?: NodeObj;
dangerouslySetInnerHTML?: string;
};

References: NodeObj