Skip to content

The open alternative to Salesforce, designed for AI.

4.0 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="axis" type="&quot;x&quot; | &quot;y&quot;" default="y without edge">
  Pointer movement axis without `edge`: `y` for height or `x` for width.
</ParamField>

<ParamField body="defaultValue" type="number | (readonly string[] &amp; number)" default="150">
  Initial size when the handle owns its state.
</ParamField>

<ParamField body="direction" type="&quot;normal&quot; | &quot;reverse&quot;">
  Physical increasing direction. Omit to follow the horizontal text direction; use `normal` or `reverse` for a fixed physical edge.
</ParamField>

<ParamField body="disabled" type="boolean" default="false">
  Disables resizing and removes the handle from the tab order.
</ParamField>

<ParamField body="dragThreshold" type="number" default="5 with edge; 0 otherwise">
  Physical pointer distance required before resizing starts. Movement below the threshold remains a click. Defaults to 5 with `edge` and 0 otherwise.
</ParamField>

<ParamField body="edge" type="&quot;bottom&quot; | &quot;left&quot; | &quot;right&quot; | &quot;top&quot;">
  Physical panel edge. Determines the movement axis and increasing direction, independently of text direction.
</ParamField>

<ParamField body="max" type="number" default="500">
  Maximum allowed size.
</ParamField>

<ParamField body="min" type="number" default="50">
  Minimum allowed size.
</ParamField>

<ParamField body="onActivate" type="(() =&gt; void)">
  Called for a click without dragging, Enter, or Space.
</ParamField>

<ParamField body="onResizeEnd" type="((details: { cancelled: boolean; value: number; }) =&gt; void)">
  Called after a started drag ends, with its final value and whether it was cancelled. Cancellation restores the starting value within the current bounds.
</ParamField>

<ParamField body="onResizeStart" type="((value: number) =&gt; void)">
  Called once with the first bounded drag value after the threshold is crossed.
</ParamField>

<ParamField body="onValueChange" type="((value: number) =&gt; void)">
  Called with the bounded size during pointer or keyboard interaction and with the restored value on cancellation.
</ParamField>

<ParamField body="onValueCommitted" type="((value: number) =&gt; void)">
  Called with the final size after a successful drag or an effective keyboard size change. Cancellation does not commit.
</ParamField>

<ParamField body="placement" type="&quot;edge&quot; | &quot;gap&quot; | &quot;inline&quot;" default="edge with edge; inline otherwise">
  Layout mode: `inline` stays in normal flow, `edge` positions the handle on the panel edge, and `gap` sits between panels. Defaults to `edge` when `edge` is set and `inline` otherwise.
</ParamField>

<ParamField body="render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, {}&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="scale" type="number | (() =&gt; number)" default="1">
  Pointer scale or resolver sampled at pointer down. Movement is divided by this positive scale; keyboard steps are unchanged.
</ParamField>

<ParamField body="step" type="number" default="10">
  Keyboard arrow increment. Pointer movement uses the pixel delta.
</ParamField>

<ParamField body="value" type="number">
  Current controlled size. Update it in `onValueChange` and apply it to the element being resized.
</ParamField>