Skip to content

The open alternative to Salesforce, designed for AI.

2.1 KB
Raw Blame
{/*
 * _____                    _
 *|_   _|_      _____ _ __ | |_ _   _
 *  | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file
 *  | |  \ V  V /  __/ | | | |_| |_| | DO NOT EDIT - changes will be overwritten
 *  |_|   \_/\_/ \___|_| |_|\__|\__, | Generated by: npx nx generate:ui twenty-docs
 *                              |___/
 *
 * This file is generated from the documentation data in packages/twenty-ui/generated.
 * To update it, edit the component prop types or design tokens in twenty-ui and run:
 *   npx nx generate:ui twenty-docs
 */}

<ParamField body="arrowButtonCollapsedLabel" type="string" required>
  Accessible label for the expand control on a collapsed node.
</ParamField>

<ParamField body="arrowButtonExpandedLabel" type="string" required>
  Accessible label for the collapse control on an expanded node.
</ParamField>

<ParamField body="emptyArrayLabel" type="string" required>
  Display text for an empty array.
</ParamField>

<ParamField body="emptyObjectLabel" type="string" required>
  Display text for an empty object.
</ParamField>

<ParamField body="emptyStringLabel" type="string" required>
  Display text for an empty string.
</ParamField>

<ParamField body="entries" type="JsonTreeEntry[]">
  Named entries with stable id, label, and JSON value fields. Supply entries or value, not both.
</ParamField>

<ParamField body="getNodeHighlighting" type="GetJsonNodeHighlighting">
  Returns blue, red, or partial-blue highlighting for a node key path.
</ParamField>

<ParamField body="onNodeValueClick" type="((valueAsString: string) =&gt; void)">
  Called with the clicked value as displayed: leaf values as strings, and the empty label for empty strings, arrays, and objects.
</ParamField>

<ParamField body="shouldExpandNodeInitially" type="((params: ShouldExpandNodeInitiallyProps) =&gt; boolean)" default="({ depth }: ShouldExpandNodeInitiallyProps) =&gt;
  depth &lt;= 1">
  Chooses initial expansion from the node keyPath and depth. The default expands the first two depths.
</ParamField>

<ParamField body="value" type="JsonValue">
  JSON value to display. Supply value or entries, not both.
</ParamField>