UNPKG

@kit-data-manager/react-search-component

Version:

All-in-one component for rendering an elastic search UI for searching anything. Built-in support for visualizing related items in a graph and resolving unique identifiers.

18 lines (17 loc) 904 B
import { NodeTypes } from "@xyflow/react"; import { ComponentType } from "react"; import "@xyflow/react/dist/style.css"; import { ResultViewProps } from "@elastic/react-search-ui-views"; import { GraphNode } from "../../components/graph/GraphNode"; import { RelationsGraphOptions } from "../../components/graph/RelationsGraphOptions"; /** * Renders an interactive graph for the specified results. Results will be fetched from cache via PID. Currently intended for internal use only. */ export declare function RelationsGraph(props: { nodes: GraphNode[]; options?: RelationsGraphOptions; resultView: ComponentType<ResultViewProps>; /** @deprecated This property is deprecated and will be removed in the future. Dark mode is automatically enabled when any parent element has the `dark` class. */ dark?: boolean; nodeTypes?: NodeTypes; }): import("react/jsx-runtime").JSX.Element;