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="animated" type="boolean" default="true">
  Animate the highlight by default. Reduced-motion preferences always disable animation.
</ParamField>

<ParamField body="aria-hidden" type="Booleanish">
  Placeholders are decorative and hidden from assistive technology by default. The host owns loading announcements.
</ParamField>

<ParamField body="baseColor" type="BackgroundColor">
  Placeholder background color. Defaults to the theme tertiary background.
</ParamField>

<ParamField body="borderRadius" type="BorderRadius&lt;string | number&gt;">
  Round corner radius in pixels or a CSS length. Defaults to the 4px smRound theme token. Use mdRound for 8px corners or a custom radius for circles and capsules.
</ParamField>

<ParamField body="className" type="string">
  CSS class merged with the placeholder class.
</ParamField>

<ParamField body="height" type="Height&lt;string | number&gt;">
  Placeholder height in pixels or a CSS length. Defaults to the inherited font height.
</ParamField>

<ParamField body="highlightColor" type="BackgroundColor">
  Animated highlight color. Defaults to the theme lighter transparent background.
</ParamField>

<ParamField body="layout" type="&quot;block&quot; | &quot;inline&quot;" default="block">
  `block` renders a block without a text node. `inline` sizes and aligns the placeholder like a line of text.
</ParamField>

<ParamField body="ref" type="Ref&lt;HTMLSpanElement&gt;">
  Ref to the placeholder span, or the element supplied through render.
</ParamField>

<ParamField body="render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, {}&gt;">
  Element or render callback composed through Base UI useRender.
</ParamField>

<ParamField body="style" type="CSSProperties">
  Native styles merged with the placeholder dimensions and colors. Explicit styles win.
</ParamField>

<ParamField body="width" type="Width&lt;string | number&gt;">
  Placeholder width in pixels or a CSS length. Defaults to the available width and never exceeds the container.
</ParamField>