Skip to content

The open alternative to Salesforce, designed for AI.

2.9 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="active" type="boolean">
  Marks the open or current item independently of selection and focus. The caller supplies accessible state.
</ParamField>

<ParamField body="color" type="&quot;danger&quot; | &quot;neutral&quot;">
  Color of the text and icons. `danger` marks a destructive action.
</ParamField>

<ParamField body="description" type="ReactNode">
  Supporting text, placed according to `descriptionPlacement`.
</ParamField>

<ParamField body="descriptionPlacement" type="&quot;below&quot; | &quot;end&quot; | &quot;inline&quot;">
  Places supporting content inline after the label, at the end, or below it with wrapping. Inline is the default.
</ParamField>

<ParamField body="disabled" type="boolean" default="false">
  Disables activation and applies the matching row appearance.
</ParamField>

<ParamField body="endIcon" type="ReactNode">
  Icon rendered after the content.
</ParamField>

<ParamField body="focusableWhenDisabled" type="boolean" default="false">
  Keeps a disabled button focusable with aria-disabled while preventing activation.
</ParamField>

<ParamField body="focused" type="boolean">
  Highlights the row without moving DOM focus.
</ParamField>

<ParamField body="hasSubmenu" type="boolean">
  Displays a decorative submenu indicator.
</ParamField>

<ParamField body="indicator" type="&quot;check&quot; | &quot;checkbox&quot; | &quot;none&quot;">
  Selection indicator: a check icon after the content or a checkbox before
  it.
</ParamField>

<ParamField body="ref" type="Ref&lt;HTMLButtonElement&gt;">
  Ref to the native HTMLButtonElement.
</ParamField>

<ParamField body="selected" type="boolean">
  Applies selected styling and a decorative indicator. The caller supplies selection state and accessible semantics.
</ParamField>

<ParamField body="selectionAppearance" type="&quot;accent&quot; | &quot;default&quot;">
  Selection styling independent of description placement. `default` preserves indicator-based styling; `accent` fills selected rows with the accent background.
</ParamField>

<ParamField body="shortcut" type="ShortcutDefinition">
  Displays decorative shortcut hints. The caller registers the shortcuts.
</ParamField>

<ParamField body="shortcutJoinLabel" type="string">
  Text between sequential shortcut steps. Defaults to `then`; pass an empty string to omit it.
</ParamField>

<ParamField body="startIcon" type="ReactNode">
  Icon rendered before the content.
</ParamField>