-
Notifications
You must be signed in to change notification settings - Fork 0
Api: Types
ryusufe edited this page Nov 24, 2025
·
1 revision
Represents a node in the kit.
interface NodeType<Data = any> {
id: string;
x: number;
y: number;
width: number;
height: number;
data?: NodeData<Data>;
class?: string;
style?: JSX.CSSProperties;
}interface NodeData<T = any> {
label?: string;
component?: {
type: string;
props?: T & { kit?: Kit; node?: NodeType };
};
}-
label: Default label text. -
component: Configuration for rendering a custom component.-
type: Key matching a component in thecomponentsprop. -
props: Props to pass to the custom component.
-
Represents a connection between two nodes.
interface ConnectionType {
id: string;
from: ConnectionNode;
to: ConnectionNode;
label?: string;
class?: string;
style?: JSX.CSSProperties;
}interface ConnectionNode {
id: string;
side: "top" | "left" | "bottom" | "right";
}interface ViewPort {
x: number;
y: number;
zoom: number;
}-
Getting Started
-
API
-
Customization