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="children" type="ReactNode" required>
  Field content, such as plain inputs, recipient chips, selectors or toggles. The caller owns input labels, state and click-to-focus behavior.
</ParamField>

<ParamField body="className" type="string">
  CSS class applied to the group root.
</ParamField>

<ParamField body="contentPaddingInline" type="PaddingInline&lt;string | number&gt;" default="var(--t-spacing-2)">
  Inline padding around the field content, defaulting to the --t-spacing-2 theme token (8 pixels in the standard theme). Numbers use pixels; CSS padding values are also supported. Set 0 to align content with the row inset when no visible label is present.
</ParamField>

<ParamField body="hasDivider" type="boolean" default="true">
  Shows a decorative bottom divider. Set false on the final row when the surrounding surface supplies its own border.
</ParamField>

<ParamField body="isHoverable" type="boolean" default="false">
  Enables a neutral hover background independently of click handlers. Keyboard focus remains on nested controls without changing the row background.
</ParamField>

<ParamField body="label" type="string">
  Optional visible field label and default group name. Supply aria-label or aria-labelledby when the label is omitted. Label each nested input separately.
</ParamField>

<ParamField body="labelWidth" type="Width&lt;string | number&gt;" default="80">
  Preferred label column width, capped at 40% of the row. Numbers use pixels; use the same width for aligned sibling rows.
</ParamField>

<ParamField body="onClick" type="MouseEventHandler&lt;HTMLDivElement&gt;">
  Native group click handler. Providing a handler shows a pointer cursor; the caller guards nested-control and portaled events as needed.
</ParamField>

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

<ParamField body="render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, {}&gt;">
  Customizes the group root. Forward its props and ref.
</ParamField>

<ParamField body="startIcon" type="ReactNode">
  Optional decorative icon before the label. The caller controls icon dimensions.
</ParamField>

<ParamField body="style" type="CSSProperties">
  Inline styles applied to the group root.
</ParamField>

<ParamField body="trailing" type="ReactNode">
  Optional trailing content. Nested controls retain their own keyboard focus and event behavior.
</ParamField>

<ParamField body="trailingProps" type="Omit&lt;DetailedHTMLProps&lt;HTMLAttributes&lt;HTMLDivElement&gt;, HTMLDivElement&gt;, &quot;children&quot;&gt;">
  Native props, event handlers and ref applied to the trailing content wrapper. The wrapper is rendered only when trailing content is present; className is merged with the shared layout class.
</ParamField>