Skip to content

The open alternative to Salesforce, designed for AI.

3.5 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="alwaysShowTooltip" type="boolean" default="false">
  Shows the content tooltip even when the content is not truncated.
</ParamField>

<ParamField body="children" type="ReactNode">
  Caller-owned content. Missing or empty children add no fallback label.
</ParamField>

<ParamField body="clickable" type="boolean" default="isDefined(onClick)">
  Enables hover and pointer styling. Defaults to whether `onClick` is supplied; does not change the default div or add keyboard behavior.
</ParamField>

<ParamField body="color" type="&quot;primary&quot; | &quot;secondary&quot;" default="primary">
  Primary or secondary text color.
</ParamField>

<ParamField body="endElement" type="ReactNode">
  Content after the label. Avoid interactive content when the chip itself is a button or link.
</ParamField>

<ParamField body="endElementDivider" type="boolean" default="false">
  Adds a divider before `endElement` when that slot has content.
</ParamField>

<ParamField body="isTooltipMultiline" type="boolean">
  Preserves line breaks in the tooltip text.
</ParamField>

<ParamField body="maxWidth" type="number">
  Maximum rendered chip width in pixels, including its leading and trailing padding and any outline border.
</ParamField>

<ParamField body="render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, {}&gt;">
  Replaces the default div. Compose a native button or link explicitly; that owner supplies disabled and native interaction behavior.
</ParamField>

<ParamField body="shape" type="&quot;round&quot; | &quot;square&quot;" default="square">
  Square or round corners.
</ParamField>

<ParamField body="size" type="&quot;md&quot; | &quot;sm&quot;" default="sm">
  Visual size of the chip.
</ParamField>

<ParamField body="startElement" type="ReactNode">
  Content before the label, such as an avatar or icon.
</ParamField>

<ParamField body="tooltipContent" type="string">
  Tooltip text. Defaults to string children. Supply text explicitly for node content.
</ParamField>

<ParamField body="tooltipDelay" type="number">
  Delay in milliseconds before the tooltip opens.
</ParamField>

<ParamField body="tooltipPlace" type="&quot;bottom&quot; | &quot;inline-end&quot; | &quot;inline-start&quot; | &quot;left&quot; | &quot;right&quot; | &quot;top&quot;">
  Position of the content tooltip.
</ParamField>

<ParamField body="truncate" type="boolean" default="true">
  Truncates overflowing content with an ellipsis. Defaults to true.
</ParamField>

<ParamField body="variant" type="&quot;ghost&quot; | &quot;outline&quot; | &quot;plain&quot; | &quot;soft&quot; | &quot;solid&quot;" default="ghost">
  Background and border treatment. Outline has a strong border, lighter resting fill and 8px inline padding. Plain has no resting fill or leading padding. Both use ghost hover and pressed feedback when clickable.
</ParamField>

<ParamField body="weight" type="&quot;medium&quot; | &quot;regular&quot;" default="regular">
  Font weight of the content.
</ParamField>