Skip to content

The open alternative to Salesforce, designed for AI.

2.3 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="avatars" type="ReactNode[]" required>
  Avatar elements in display order. Empty React nodes are ignored. Supply stable keys to preserve identity when reordering.
</ParamField>

<ParamField body="className" type="string">
  Class applied to the group container.
</ParamField>

<ParamField body="maxVisible" type="number" default="4">
  Maximum number of actual avatars to show, excluding the overflow indicator. Floored and clamped to zero; Infinity shows all avatars and NaN shows none.
</ParamField>

<ParamField body="overflowShape" type="&quot;circle&quot; | &quot;rounded-square&quot; | &quot;square&quot;" default="square">
  Shape of the numeric overflow indicator.
</ParamField>

<ParamField body="overlap" type="&quot;left&quot; | &quot;right&quot;" default="right">
  Physical margin, left or right, that carries the negative overlap offset. Later avatars always render above earlier ones.
</ParamField>

<ParamField body="overlapOffset" type="string" default="3px">
  CSS length of the overlap between avatars.
</ParamField>

<ParamField body="ref" type="Ref&lt;HTMLDivElement&gt;">
  Ref to the rendered root element.
</ParamField>

<ParamField body="render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, {}&gt;">
  Element or render function for the root. Forward the supplied props and ref; the default element is a div.
</ParamField>

<ParamField body="renderOverflow" type="((hiddenCount: number) =&gt; ReactNode)">
  Called with the derived hidden count when it is positive. Return a custom indicator, or null to hide it.
</ParamField>

<ParamField body="total" type="number">
  Total collection size for partially loaded avatars. Floored and never smaller than the supplied renderable count; nonfinite values use the supplied count.
</ParamField>