Skip to content

The open alternative to Salesforce, designed for AI.

2.1 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="aria-label" type="string">
  Accessible name describing the reaction. Required unless `aria-labelledby` supplies the name.
</ParamField>

<ParamField body="aria-labelledby" type="string">
  ID of the element supplying the accessible name. Can be used instead of `aria-label`.
</ParamField>

<ParamField body="count" type="string | number" required>
  Displayed count. Pass a string for localized or abbreviated formatting. Hidden from assistive technology.
</ParamField>

<ParamField body="disabled" type="boolean" default="false">
  Disables the native button and prevents activation.
</ParamField>

<ParamField body="emoji" type="string" required>
  Emoji displayed beside the count. Hidden from assistive technology.
</ParamField>

<ParamField body="loading" type="boolean" default="false">
  Shows a loading indicator, sets `aria-busy`, and prevents activation without changing the supplied pressed state.
</ParamField>

<ParamField body="onClick" type="MouseEventHandler&lt;HTMLButtonElement&gt;">
  Native click handler called before `onPressedChange`. Calling `preventDefault()` cancels the change request.
</ParamField>

<ParamField body="onPressedChange" type="(pressed: boolean) =&gt; void" required>
  Requests the next pressed state after activation. The caller updates `pressed` and `count`.
</ParamField>

<ParamField body="pressed" type="boolean" required>
  Controlled selection state. Sets the selected appearance and `aria-pressed`.
</ParamField>

<ParamField body="title" type="string">
  Optional native tooltip text supplied by the caller.
</ParamField>