Skip to content

The open alternative to Salesforce, designed for AI.

3.2 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="action" type="ReactNode">
  Optional footer node, such as a Button with a caller-owned action.
</ParamField>

<ParamField body="cancelLabel" type="ReactNode" default="Cancel">
  Cancel button content node. Defaults to Cancel. Pass null to hide the control.
</ParamField>

<ParamField body="children" type="ReactNode">
  Main message node. Callers own its content and accessible text.
</ParamField>

<ParamField body="className" type="string">
  Additional class names merged onto the root.
</ParamField>

<ParamField body="closeLabel" type="string" default="Close">
  Accessible name of the close button. Defaults to Close.
</ParamField>

<ParamField body="description" type="ReactNode">
  Optional supporting content node rendered below the message.
</ParamField>

<ParamField body="duration" type="number" default="6000">
  Milliseconds before onClose is called, defaulting to 6000. Zero keeps the toast open. Changes restart the countdown; live updateToast duration patches restart it even when unchanged. Hover and keyboard focus pause it until both leave.
</ParamField>

<ParamField body="icon" type="ReactNode">
  Leading icon node. Defaults to the status icon. Pass null to omit it.
</ParamField>

<ParamField body="iconLabel" type="string">
  Accessible name of the default icon. Without it, the icon is decorative.
</ParamField>

<ParamField body="onCancel" type="(() =&gt; void)">
  Called when the cancel button is clicked. Providing it and renderable cancelLabel content shows the button.
</ParamField>

<ParamField body="onClose" type="(() =&gt; void)">
  For standalone Toast, called once per mount by the close button or expiry. For provider notifications, called once on close, expiry, closeToast, or limit eviction, after dismissal and before exit cleanup. Provider teardown does not call it.
</ParamField>

<ParamField body="progress" type="number">
  Completion percentage. Providing it disables the countdown. Removing it starts a fresh duration.
</ParamField>

<ParamField body="ref" type="Ref&lt;HTMLDivElement&gt;">
  Ref to the root div, or the element supplied through render.
</ParamField>

<ParamField body="render" type="RenderProp&lt;Record&lt;string, unknown&gt;&gt;">
  Element or callback composition for the root. Native props and the ref target the rendered element.
</ParamField>

<ParamField body="status" type="&quot;error&quot; | &quot;info&quot; | &quot;neutral&quot; | &quot;success&quot; | &quot;warning&quot;" default="neutral">
  Feedback meaning: neutral, info, success, warning, or error. Defaults to neutral and selects the icon and theme palette.
</ParamField>

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