Skip to content

The open alternative to Salesforce, designed for AI.

2.6 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="className" type="string">
  CSS class applied to the root element.
</ParamField>

<ParamField body="count" type="number" required>
  Number of items in the collection. Empty collections and invalid or noninteger counts disable navigation.
</ParamField>

<ParamField body="disabled" type="boolean" default="false">
  Disables both navigation buttons without changing the position text.
</ParamField>

<ParamField body="index" type="number" required>
  Controlled zero-based item index. Navigation is disabled when the index is not an integer within the collection bounds.
</ParamField>

<ParamField body="nextLabel" type="string" required>
  Accessible name of the Next button.
</ParamField>

<ParamField body="onIndexChange" type="(index: number) =&gt; void" required>
  Requests the neighboring index after activating Previous or Next. Prop changes do not call this callback or select a replacement item.
</ParamField>

<ParamField body="positionPlacement" type="&quot;between&quot; | &quot;start&quot;" default="between">
  Places the position text between the buttons or at the start of the row. Start placement lets the text fill the available width.
</ParamField>

<ParamField body="positionText" type="string" required>
  Caller-formatted position text, announced politely when it changes. The caller also supplies text for empty collections.
</ParamField>

<ParamField body="previousLabel" type="string" required>
  Accessible name of the Previous button.
</ParamField>

<ParamField body="ref" type="Ref&lt;HTMLDivElement&gt;">
  Ref to the root element.
</ParamField>

<ParamField body="render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, {}&gt;">
  Replaces the root element while preserving its props and contents.
</ParamField>

<ParamField body="role" type="AriaRole" default="group">
  Root semantics. Defaults to a group; the caller supplies its accessible name.
</ParamField>

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