Files
upstream-mirror e7da97194a
Some checks failed
App Prod-Parity E2E Dispatch / dispatch (push) Failing after 10s
CD Storybook UI / build (push) Failing after 3m25s
CD Storybook UI / dispatch (push) Has been skipped
CD deploy main / website-changed-files (push) Successful in 18m8s
CI Agent Skills / changed-files-check (push) Successful in 18m9s
CI Create App E2E minimal / changed-files-check (push) Successful in 24s
CI Create App / changed-files-check (push) Successful in 26s
CI Docs / changed-files-check (push) Successful in 26s
CI Emails / changed-files-check (push) Successful in 28s
CI Example App Hello World / changed-files-check (push) Successful in 23s
CI Front / changed-files-check (push) Has been skipped
CI Example App Postcard / changed-files-check (push) Successful in 27s
CI UI / changed-files-check (push) Has been skipped
CI Utils Test / changed-files-check (push) Successful in 45s
CI Twenty Apps / discover (push) Successful in 1m3s
CD deploy main / deploy-main (push) Failing after 3s
CI Agent Skills / agent-skills-validate (push) Has been skipped
CI Create App / create-app-test (lint) (push) Has been skipped
CI Emails / emails-test (push) Has been skipped
CI Front / front-task (lingui:compile) (push) Has been skipped
CI Front / front-task (lint) (push) Has been skipped
CI Example App Postcard / example-app-postcard (push) Has been skipped
CI UI / ui-task (lint) (push) Has been skipped
CI UI / ui-task (pack-size) (push) Has been skipped
CI UI / ui-task (size) (push) Has been skipped
CI UI / ui-task (test) (push) Has been skipped
CI UI / ui-task (typecheck) (push) Has been skipped
CI Utils Test / utils-test (push) Has been skipped
CI Twenty Apps / ${{ matrix.app.name }} (push) Has been skipped
CI Emails / ci-emails-status-check (push) Successful in 2s
CI Example App Hello World / ci-example-app-hello-world-status-check (push) Successful in 2s
CI Example App Postcard / ci-example-app-postcard-status-check (push) Successful in 3s
CI UI / ui-sb-test (push) Has been skipped
CI Utils Test / ci-utils-test-status-check (push) Successful in 2s
CI Twenty Apps / ci-twenty-apps-status-check (push) Successful in 2s
CI UI / ci-ui-status-check (push) Successful in 2s
CI Desktop / desktop (push) Failing after 1m8s
Push docs to Crowdin / Push documentation to Crowdin (push) Failing after 55s
Push translations to Crowdin / Extract and upload translations (push) Failing after 5s
Push website translations to Crowdin / Extract and upload website translations (push) Failing after 5s
CI Create App / create-app-test (test) (push) Has been skipped
CI Create App / create-app-test (typecheck) (push) Has been skipped
CI Docs / docs-lint (push) Has been skipped
CI Example App Hello World / example-app-hello-world (push) Has been skipped
CI Front / front-task (lingui:extract) (push) Has been skipped
CI Front / front-task (test) (push) Has been skipped
CI Front / front-task (typecheck) (push) Has been skipped
CI UI / ui-sb-build (push) Failing after 1m32s
CI Twenty Apps / ${{ matrix.app.name }} (${{ matrix.server-source }}) (push) Has been skipped
CI Agent Skills / agent-skills-publish (push) Has been skipped
CI Create App / ci-create-app-status-check (push) Successful in 2s
CI Agent Skills / agent-skills-remote-source (push) Has been skipped
CI Create App E2E minimal / create-app-e2e-minimal (push) Has been cancelled
CI E2E Main / e2e-test (push) Has been cancelled
CI Front / front-sb-build (push) Has been cancelled
CI Front / front-build (push) Has been cancelled
CI Create App E2E minimal / ci-create-app-e2e-minimal-status-check (push) Has been cancelled
CI E2E Main / ci-e2e-main-status-check (push) Has been cancelled
CI E2E Main / notify-main-ci-failure (push) Has been cancelled
CI E2E Main / qa-scout-comment (push) Has been cancelled
CI Front / front-sb-test (push) Has been cancelled
CI Front / front-sb-screenshots (push) Has been cancelled
CI Front / ci-front-status-check (push) Has been cancelled
DPA Sub-Processor Sync / sync-subprocessors (push) Failing after 3s
AI Catalog Sync / sync-catalog (push) Failing after 2s
snapshot of https://github.com/twentyhq/twenty.git (main, 2026-09-17; blobs > 131072B omitted)
2026-09-17 23:28:13 +05:00

417 lines
17 KiB
Plaintext

{/*
* _____ _
*|_ _|_ _____ _ __ | |_ _ _
* | | \ \ /\ / / _ \ '_ \| __| | | | 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;TooltipRootActions | null&gt;">
A ref to imperative actions.
- `unmount`: Unmounts the tooltip popup.
- `close`: Closes the tooltip imperatively when called.
</ParamField>
<ParamField body="align" type="&quot;center&quot; | &quot;start&quot; | &quot;end&quot;">
Alignment relative to the trigger. Defaults to center.
</ParamField>
<ParamField body="alignOffset" type="number | OffsetFunction" default="0">
Offset along the alignment axis in pixels.
</ParamField>
<ParamField body="anchor" type="Element | VirtualElement | RefObject&lt;Element | null&gt; | (() =&gt; Element | VirtualElement | null) | null">
An explicit positioning anchor for the popup.
</ParamField>
<ParamField body="arrow" type="boolean">
Displays an arrow pointing to the trigger. Defaults to false.
</ParamField>
<ParamField body="children" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt;" required>
A single trigger element. Custom components must forward their ref, native attributes, and event handlers.
</ParamField>
<ParamField body="className" type="string | ((state: TooltipPopupState) =&gt; string | undefined)">
Additional CSS class for the popup.
</ParamField>
<ParamField body="closeDelay" type="number" default="0">
Delay in milliseconds before closing after hover ends. Defaults to 0.
</ParamField>
<ParamField body="closeOnClick" type="boolean" default="true">
Whether the tooltip should close when this trigger is clicked.
</ParamField>
<ParamField body="collisionAvoidance" type="CollisionAvoidance">
Determines how to handle collisions when positioning the popup.
`side` controls overflow on the preferred placement axis (`top`/`bottom` or `left`/`right`):
- `'flip'`: keep the requested side when it fits; otherwise try the opposite side
(`top` and `bottom`, or `left` and `right`).
- `'shift'`: never change side; keep the requested side and move the popup within
the clipping boundary so it stays visible.
- `'none'`: do not correct side-axis overflow.
`align` controls overflow on the alignment axis (`start`/`center`/`end`):
- `'flip'`: keep side, but swap `start` and `end` when the requested alignment overflows.
- `'shift'`: keep side and requested alignment, then nudge the popup along the
alignment axis to fit.
- `'none'`: do not correct alignment-axis overflow.
`fallbackAxisSide` controls fallback behavior on the perpendicular axis when the
preferred axis cannot fit:
- `'start'`: allow perpendicular fallback and try the logical start side first
(`top` before `bottom`, or `left` before `right` in LTR).
- `'end'`: allow perpendicular fallback and try the logical end side first
(`bottom` before `top`, or `right` before `left` in LTR).
- `'none'`: do not fallback to the perpendicular axis.
When `side` is `'shift'`, explicitly setting `align` only supports `'shift'` or `'none'`.
If `align` is omitted, it defaults to `'flip'`.
</ParamField>
<ParamField body="collisionBoundary" type="Boundary" default="clipping-ancestors">
An element or a rectangle that delimits the area that the popup is confined to.
</ParamField>
<ParamField body="collisionPadding" type="Padding" default="5">
Additional space to maintain from the edge of the collision boundary.
</ParamField>
<ParamField body="container" type="HTMLElement | ShadowRoot | RefObject&lt;HTMLElement | ShadowRoot | null&gt; | null">
Portal destination. Defaults to the current theme container.
</ParamField>
<ParamField body="content" type="ReactNode" required>
Supplementary content displayed in the tooltip.
</ParamField>
<ParamField body="defaultOpen" type="boolean" default="false">
Initial visibility when the tooltip manages its own state.
</ParamField>
<ParamField body="defaultTriggerId" type="string | null">
ID of the trigger that the tooltip is associated with.
This is useful in conjunction with the `defaultOpen` prop to create an initially open tooltip.
</ParamField>
<ParamField body="delay" type="number" default="600">
Delay in milliseconds before opening on hover. Defaults to 600.
</ParamField>
<ParamField body="disableAnchorTracking" type="boolean" default="false">
Whether to disable the popup from tracking any layout shift of its positioning anchor.
</ParamField>
<ParamField body="disabled" type="boolean" default="false">
Prevents the tooltip from opening.
</ParamField>
<ParamField body="disableHoverablePopup" type="boolean" default="false">
Prevents hovering over the popup from keeping it open.
</ParamField>
<ParamField body="keepMounted" type="boolean">
Keeps the popup mounted while closed.
</ParamField>
<ParamField body="maxWidth" type="MaxWidth&lt;string | number&gt;">
Maximum popup width. Defaults to 300 pixels.
</ParamField>
<ParamField body="onOpenChange" type="((open: boolean, eventDetails: TooltipRootChangeEventDetails) =&gt; void)">
Called when an interaction requests a visibility change.
</ParamField>
<ParamField body="onOpenChangeComplete" type="((open: boolean) =&gt; void)">
Event handler called after any animations complete when the tooltip is opened or closed.
</ParamField>
<ParamField body="open" type="boolean">
Controlled visibility of the tooltip.
</ParamField>
<ParamField body="positionMethod" type="&quot;absolute&quot; | &quot;fixed&quot;" default="absolute">
CSS positioning method for the popup.
</ParamField>
<ParamField body="render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, TooltipPopupState&gt;">
Allows you to replace the component's HTML element
with a different tag, or compose it with another component.
Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>
<ParamField body="side" type="&quot;top&quot; | &quot;right&quot; | &quot;bottom&quot; | &quot;left&quot;">
Preferred side of the trigger. Defaults to top and may change to avoid collisions.
</ParamField>
<ParamField body="sideOffset" type="number | OffsetFunction" default="10">
Distance from the trigger in pixels. Defaults to 10.
</ParamField>
<ParamField body="sticky" type="boolean" default="false">
Whether to maintain the popup in the viewport after
the anchor element was scrolled out of view.
</ParamField>
<ParamField body="style" type="CSSProperties | ((state: TooltipPopupState) =&gt; CSSProperties | undefined)">
Inline styles for the popup.
</ParamField>
<ParamField body="trackCursorAxis" type="&quot;none&quot; | &quot;both&quot; | &quot;x&quot; | &quot;y&quot;" default="none">
Determines which axis the tooltip should track the cursor on.
</ParamField>
<ParamField body="triggerId" type="string | null">
ID of the trigger that the tooltip is associated with.
This is useful in conjunction with the `open` prop to create a controlled tooltip.
There's no need to specify this prop when the tooltip is uncontrolled (that is, when the `open` prop is not set).
</ParamField>
### Tooltip.Root
<ParamField body="Root.actionsRef" type="RefObject&lt;TooltipRootActions | null&gt;">
A ref to imperative actions.
- `unmount`: Unmounts the tooltip popup.
- `close`: Closes the tooltip imperatively when called.
</ParamField>
<ParamField body="Root.children" type="ReactNode | PayloadChildRenderFunction&lt;Payload&gt;">
The content of the tooltip.
This can be a regular React node or a render function that receives the `payload` of the active trigger.
</ParamField>
<ParamField body="Root.defaultOpen" type="boolean" default="false">
Whether the tooltip is initially open.
To render a controlled tooltip, use the `open` prop instead.
</ParamField>
<ParamField body="Root.defaultTriggerId" type="string | null">
ID of the trigger that the tooltip is associated with.
This is useful in conjunction with the `defaultOpen` prop to create an initially open tooltip.
</ParamField>
<ParamField body="Root.disabled" type="boolean" default="false">
Whether the tooltip is disabled.
</ParamField>
<ParamField body="Root.disableHoverablePopup" type="boolean" default="false">
Whether the tooltip contents can be hovered without closing the tooltip.
</ParamField>
<ParamField body="Root.handle" type="TooltipHandle&lt;Payload&gt;">
A handle to associate the tooltip with a trigger.
If specified, allows external triggers to control the tooltip's open state.
Can be created with the Tooltip.createHandle() method.
</ParamField>
<ParamField body="Root.onOpenChange" type="((open: boolean, eventDetails: TooltipRootChangeEventDetails) =&gt; void)">
Event handler called when the tooltip is opened or closed.
</ParamField>
<ParamField body="Root.onOpenChangeComplete" type="((open: boolean) =&gt; void)">
Event handler called after any animations complete when the tooltip is opened or closed.
</ParamField>
<ParamField body="Root.open" type="boolean">
Whether the tooltip is currently open.
</ParamField>
<ParamField body="Root.trackCursorAxis" type="&quot;none&quot; | &quot;both&quot; | &quot;x&quot; | &quot;y&quot;" default="none">
Determines which axis the tooltip should track the cursor on.
</ParamField>
<ParamField body="Root.triggerId" type="string | null">
ID of the trigger that the tooltip is associated with.
This is useful in conjunction with the `open` prop to create a controlled tooltip.
There's no need to specify this prop when the tooltip is uncontrolled (that is, when the `open` prop is not set).
</ParamField>
### Tooltip.Trigger
<ParamField body="Trigger.className" type="string | ((state: TooltipTriggerState) =&gt; string | undefined)">
CSS class applied to the element, or a function that
returns a class based on the component's state.
</ParamField>
<ParamField body="Trigger.closeDelay" type="number" default="0">
How long to wait before closing the tooltip. Specified in milliseconds.
</ParamField>
<ParamField body="Trigger.closeOnClick" type="boolean" default="true">
Whether the tooltip should close when this trigger is clicked.
</ParamField>
<ParamField body="Trigger.delay" type="number" default="600">
How long to wait before opening the tooltip on hover. Specified in milliseconds.
</ParamField>
<ParamField body="Trigger.disabled" type="boolean" default="false">
If `true`, the tooltip will not open when interacting with this trigger.
Note that this doesn't apply the `disabled` attribute to the trigger element.
If you want to disable the trigger element itself, you can pass the `disabled` prop to the trigger element via the `render` prop.
</ParamField>
<ParamField body="Trigger.handle" type="TooltipHandle&lt;Payload&gt;">
A handle to associate the trigger with a tooltip.
</ParamField>
<ParamField body="Trigger.payload" type="Payload">
A payload to pass to the tooltip when it is opened.
</ParamField>
<ParamField body="Trigger.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, TooltipTriggerState&gt;">
Allows you to replace the component's HTML element
with a different tag, or compose it with another component.
Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>
<ParamField body="Trigger.style" type="CSSProperties | ((state: TooltipTriggerState) =&gt; CSSProperties | undefined)">
Style applied to the element, or a function that
returns a style object based on the component's state.
</ParamField>
### Tooltip.Popup
<ParamField body="Popup.align" type="&quot;center&quot; | &quot;start&quot; | &quot;end&quot;" default="center">
Alignment relative to the trigger. Defaults to center.
</ParamField>
<ParamField body="Popup.alignOffset" type="number | OffsetFunction" default="0">
Offset along the alignment axis in pixels.
</ParamField>
<ParamField body="Popup.anchor" type="Element | VirtualElement | RefObject&lt;Element | null&gt; | (() =&gt; Element | VirtualElement | null) | null">
An explicit positioning anchor for the popup.
</ParamField>
<ParamField body="Popup.arrow" type="boolean" default="false">
Displays an arrow pointing to the trigger. Defaults to false.
</ParamField>
<ParamField body="Popup.className" type="string | ((state: TooltipPopupState) =&gt; string | undefined)">
Additional CSS class for the popup.
</ParamField>
<ParamField body="Popup.collisionAvoidance" type="CollisionAvoidance">
Determines how to handle collisions when positioning the popup.
`side` controls overflow on the preferred placement axis (`top`/`bottom` or `left`/`right`):
- `'flip'`: keep the requested side when it fits; otherwise try the opposite side
(`top` and `bottom`, or `left` and `right`).
- `'shift'`: never change side; keep the requested side and move the popup within
the clipping boundary so it stays visible.
- `'none'`: do not correct side-axis overflow.
`align` controls overflow on the alignment axis (`start`/`center`/`end`):
- `'flip'`: keep side, but swap `start` and `end` when the requested alignment overflows.
- `'shift'`: keep side and requested alignment, then nudge the popup along the
alignment axis to fit.
- `'none'`: do not correct alignment-axis overflow.
`fallbackAxisSide` controls fallback behavior on the perpendicular axis when the
preferred axis cannot fit:
- `'start'`: allow perpendicular fallback and try the logical start side first
(`top` before `bottom`, or `left` before `right` in LTR).
- `'end'`: allow perpendicular fallback and try the logical end side first
(`bottom` before `top`, or `right` before `left` in LTR).
- `'none'`: do not fallback to the perpendicular axis.
When `side` is `'shift'`, explicitly setting `align` only supports `'shift'` or `'none'`.
If `align` is omitted, it defaults to `'flip'`.
</ParamField>
<ParamField body="Popup.collisionBoundary" type="Boundary" default="clipping-ancestors">
An element or a rectangle that delimits the area that the popup is confined to.
</ParamField>
<ParamField body="Popup.collisionPadding" type="Padding" default="5">
Additional space to maintain from the edge of the collision boundary.
</ParamField>
<ParamField body="Popup.container" type="HTMLElement | ShadowRoot | RefObject&lt;HTMLElement | ShadowRoot | null&gt; | null">
Portal destination. Defaults to the current theme container.
</ParamField>
<ParamField body="Popup.disableAnchorTracking" type="boolean" default="false">
Whether to disable the popup from tracking any layout shift of its positioning anchor.
</ParamField>
<ParamField body="Popup.keepMounted" type="boolean">
Keeps the popup mounted while closed.
</ParamField>
<ParamField body="Popup.maxWidth" type="MaxWidth&lt;string | number&gt;" default="300px">
Maximum popup width. Defaults to 300 pixels.
</ParamField>
<ParamField body="Popup.positionMethod" type="&quot;absolute&quot; | &quot;fixed&quot;" default="absolute">
CSS positioning method for the popup.
</ParamField>
<ParamField body="Popup.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, TooltipPopupState&gt;">
Allows you to replace the component's HTML element
with a different tag, or compose it with another component.
Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>
<ParamField body="Popup.side" type="&quot;top&quot; | &quot;right&quot; | &quot;bottom&quot; | &quot;left&quot;" default="top">
Preferred side of the trigger. Defaults to top and may change to avoid collisions.
</ParamField>
<ParamField body="Popup.sideOffset" type="number | OffsetFunction" default="10">
Distance from the trigger in pixels. Defaults to 10.
</ParamField>
<ParamField body="Popup.sticky" type="boolean" default="false">
Whether to maintain the popup in the viewport after
the anchor element was scrolled out of view.
</ParamField>
<ParamField body="Popup.style" type="CSSProperties | ((state: TooltipPopupState) =&gt; CSSProperties | undefined)">
Inline styles for the popup.
</ParamField>
### Tooltip.Content
<ParamField body="Content.description" type="ReactNode">
Secondary explanation beneath the primary text.
</ParamField>
<ParamField body="Content.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, {}&gt;">
Allows you to replace the component's HTML element
with a different tag, or compose it with another component.
Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>
<ParamField body="Content.startIcon" type="ReactNode">
An icon displayed before the text.
</ParamField>
### Tooltip.Provider
<ParamField body="Provider.closeDelay" type="number">
How long to wait before closing a tooltip. Specified in milliseconds.
</ParamField>
<ParamField body="Provider.delay" type="number">
How long to wait before opening the tooltip on hover. Specified in milliseconds.
</ParamField>
<ParamField body="Provider.timeout" type="number" default="400">
Another tooltip will open instantly if the previous tooltip
is closed within this timeout. Specified in milliseconds.
</ParamField>