Skip to content

The open alternative to Salesforce, designed for AI.

3.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="actionsRef" type="RefObject&lt;PopoverRootActions | null&gt;">
  Ref exposing the Popover close() and unmount() methods. After preventUnmountOnClose(), call unmount() when the caller-owned exit finishes.
</ParamField>

<ParamField body="children" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt;[]" required>
  Complete ordered list of elements, each with a stable key. The popup contains the complete list, including items visible in the compact row.
</ParamField>

<ParamField body="defaultOpen" type="boolean" default="false">
  Initial popup visibility when uncontrolled. Defaults to false.
</ParamField>

<ParamField body="maxInlineCount" type="number">
  Maximum number of items visible in the compact row. Available width can reduce this count further. The popup still contains the complete list.
</ParamField>

<ParamField body="onOpenChange" type="((open: boolean, eventDetails: PopoverRootChangeEventDetails) =&gt; void)">
  Receives the requested open state and unchanged Base UI event details, including reason, event, trigger, cancel() and preventUnmountOnClose().
</ParamField>

<ParamField body="open" type="boolean">
  Controlled popup visibility. A popup can appear only when items overflow.
</ParamField>

<ParamField body="overflowLabel" type="string" default="Show all items">
  Accessible label for the popup. The default overflow button is named by its visible count followed by this label. Defaults to Show all items.
</ParamField>

<ParamField body="popupProps" type="Omit&lt;PopoverPopupProps, &quot;children&quot;&gt;">
  Popover.Popup native props, handlers, ref, render composition and focus options for the overflow content. Click, mousedown, pointerdown, keydown and keyup stop propagation by default. Each supplied event handler replaces its default.
</ParamField>

<ParamField body="ref" type="Ref&lt;HTMLDivElement&gt;">
  Ref forwarded to the compact row root div.
</ParamField>

<ParamField body="showOverflowCount" type="boolean">
  Shows the count on hover, keyboard focus or while open by default. Use true to keep it visible whenever items overflow, or false to hide the count and clip the row. An already-open popup stays open until dismissed. Empty lists and lists that fit have no trigger.
</ParamField>

<ParamField body="triggerProps" type="Omit&lt;
      ComponentPropsWithRef&lt;typeof Popover.Trigger&gt;,
      'handle' | 'payload' | 'ref'
    &gt; &amp; { ref?: Ref&lt;HTMLElement&gt; }">
  Popover.Trigger native props, handlers, ref, children and render composition for the count button. Click, mousedown, pointerdown, keydown and keyup stop propagation by default. Each supplied event handler replaces its default. Custom components must forward supplied props and ref.
</ParamField>