@ark-ui/react
Version:
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
21 lines (20 loc) • 685 B
text/typescript
import { JsonNode, JsonNodeHastElement } from '@zag-js/json-tree-utils';
export interface JsonTreeViewNodeBaseProps {
/**
* The icon to use for the arrow.
*/
arrow?: React.ReactElement;
/**
* The indent guide to use for the tree.
*/
indentGuide?: boolean | React.ReactElement;
/**
* The function to render the value of the node.
*/
renderValue?: (node: JsonNodeHastElement) => React.ReactNode;
}
export interface JsonTreeViewNodeProps extends JsonTreeViewNodeBaseProps {
node: JsonNode;
indexPath: number[];
}
export declare function JsonTreeViewNode(props: JsonTreeViewNodeProps): import("react/jsx-runtime").JSX.Element;