The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
{/*
* _____ _
*|_ _|_ _____ _ __ | |_ _ _
* | | \ \ /\ / / _ \ '_ \| __| | | | 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="backgroundColor" type="string">
Background color override for a first-letter fallback.
</ParamField>
<ParamField body="borderColor" type="string">
Border color override for the outline fallback.
</ParamField>
<ParamField body="className" type="string | ((state: AvatarRootState) => string | undefined)">
CSS class applied to the element, or a function that
returns a class based on the component's state.
</ParamField>
<ParamField body="color" type="string">
Text color override for a first-letter fallback.
</ParamField>
<ParamField body="colorSeed" type="string">
Stable value used to choose fallback colors. Defaults to `name`.
</ParamField>
<ParamField body="fallbackProps" type="AvatarFallbackProps">
Complete `Avatar.Fallback` props, including caller-owned children, labeling, refs, `render`, and fallback `delay` in milliseconds.
</ParamField>
<ParamField body="icon" type="ReactNode">
Decorative icon rendered instead of the image and first-letter fallback. Give the root an accessible label when the icon conveys information.
</ParamField>
<ParamField body="imageProps" type="AvatarImageProps">
Complete `Avatar.Image` props, including native image attributes, refs, `render`, `keepMounted`, and `onLoadingStatusChange`. Alternative text defaults to an empty string. Supply a nonempty `alt` to label the image and default fallback.
</ParamField>
<ParamField body="name" type="string">
Name used for the first-letter fallback and fallback colors. Does not add an accessible label.
</ParamField>
<ParamField body="pulsing" type="boolean" default="false">
Animates the avatar opacity. Respects reduced-motion preferences.
</ParamField>
<ParamField body="render" type="ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, AvatarRootState>">
Caller-supplied root element or renderer. Defaults to a presentational span. Compose a native button or link explicitly for interaction, and put its click handler and disabled state on that owner.
</ParamField>
<ParamField body="ring" type="boolean" default="false">
Surrounds the avatar with a background-colored ring so overlapping avatars stay distinct.
</ParamField>
<ParamField body="shape" type=""circle" | "rounded-square" | "square"" default="square">
Shape of the avatar and its fallback.
</ParamField>
<ParamField body="size" type=""lg" | "md" | "sm" | "xl" | "xs" | "xxl"" default="md">
Avatar size: `xs` (12px), `sm` (14px), `md` (16px), `lg` (24px), `xl` (32px), or `xxl` (40px).
</ParamField>
<ParamField body="src" type="string | null">
Image URL. A missing or failed image shows the fallback. `imageProps.src` overrides this value.
</ParamField>
<ParamField body="style" type="CSSProperties | ((state: AvatarRootState) => CSSProperties | undefined)">
Style applied to the element, or a function that
returns a style object based on the component's state.
</ParamField>
<ParamField body="variant" type=""outline" | "soft"" default="soft">
Visual treatment of the fallback.
</ParamField>
### Avatar.Root
<ParamField body="Root.backgroundColor" type="string">
Background color override for a first-letter fallback.
</ParamField>
<ParamField body="Root.borderColor" type="string">
Border color override for the outline fallback.
</ParamField>
<ParamField body="Root.children" type="ReactNode">
Caller-owned Image, Fallback, and other content.
</ParamField>
<ParamField body="Root.className" type="string | ((state: AvatarRootState) => string | undefined)">
CSS class applied to the element, or a function that
returns a class based on the component's state.
</ParamField>
<ParamField body="Root.color" type="string">
Text color override for a first-letter fallback.
</ParamField>
<ParamField body="Root.colorSeed" type="string">
Stable value used to choose fallback colors. Defaults to `name`.
</ParamField>
<ParamField body="Root.name" type="string">
Name used to choose fallback colors. Does not add children or accessible labels.
</ParamField>
<ParamField body="Root.pulsing" type="boolean" default="false">
Animates the avatar opacity. Respects reduced-motion preferences.
</ParamField>
<ParamField body="Root.render" type="ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, AvatarRootState>">
Caller-supplied root element or renderer. Defaults to a presentational span. Compose a native button or link explicitly for interaction, and put its click handler and disabled state on that owner.
</ParamField>
<ParamField body="Root.ring" type="boolean" default="false">
Surrounds the avatar with a background-colored ring so overlapping avatars stay distinct.
</ParamField>
<ParamField body="Root.shape" type=""circle" | "rounded-square" | "square"" default="square">
Shape of the avatar and its fallback.
</ParamField>
<ParamField body="Root.size" type=""lg" | "md" | "sm" | "xl" | "xs" | "xxl"" default="md">
Avatar size: `xs` (12px), `sm` (14px), `md` (16px), `lg` (24px), `xl` (32px), or `xxl` (40px).
</ParamField>
<ParamField body="Root.style" type="CSSProperties | ((state: AvatarRootState) => CSSProperties | undefined)">
Style applied to the element, or a function that
returns a style object based on the component's state.
</ParamField>
<ParamField body="Root.variant" type=""outline" | "soft"" default="soft">
Visual treatment of the fallback.
</ParamField>
### Avatar.Image
<ParamField body="Image.alt" type="string">
Caller-owned alternative text. Use an empty string for decorative images.
</ParamField>
<ParamField body="Image.className" type="string | ((state: AvatarImageState) => string | undefined)">
CSS class applied to the element, or a function that
returns a class based on the component's state.
</ParamField>
<ParamField body="Image.crossOrigin" type=""" | "anonymous" | "use-credentials"">
Native image cross-origin policy, also used during preloading.
</ParamField>
<ParamField body="Image.keepMounted" type="boolean" default="false">
Keeps the image mounted and loads it in place. Loading and failed images stay hidden while Fallback is shown.
</ParamField>
<ParamField body="Image.loading" type=""eager" | "lazy"">
Native eager or lazy loading. Use keepMounted for lazy loading.
</ParamField>
<ParamField body="Image.onLoadingStatusChange" type="((status: ImageLoadingStatus) => void)">
Called when Base UI reports a loading, loaded, or error status. Shares that state with Root and Fallback.
</ParamField>
<ParamField body="Image.referrerPolicy" type=""" | "no-referrer-when-downgrade" | "no-referrer" | "origin-when-cross-origin" | "origin" | "same-origin" | "strict-origin-when-cross-origin" | "strict-origin" | "unsafe-url"">
Native image referrer policy, also used during preloading.
</ParamField>
<ParamField body="Image.render" type="ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, AvatarImageState>">
Replaces the image. Preserve a native image and forward the supplied attributes, events, and ref.
</ParamField>
<ParamField body="Image.sizes" type="string">
Native responsive image sizes used with srcSet.
</ParamField>
<ParamField body="Image.src" type="string">
Image URL. Image renders after a successful load unless keepMounted is enabled.
</ParamField>
<ParamField body="Image.srcSet" type="string">
Native responsive image source candidates.
</ParamField>
<ParamField body="Image.style" type="CSSProperties | ((state: AvatarImageState) => CSSProperties | undefined)">
Style applied to the element, or a function that
returns a style object based on the component's state.
</ParamField>
### Avatar.Fallback
<ParamField body="Fallback.children" type="ReactNode">
Caller-owned fallback content, such as initials or an icon.
</ParamField>
<ParamField body="Fallback.className" type="string | ((state: AvatarFallbackState) => string | undefined)">
CSS class applied to the element, or a function that
returns a class based on the component's state.
</ParamField>
<ParamField body="Fallback.delay" type="number" default="0">
Milliseconds before the initial fallback is shown. Defaults to 0.
</ParamField>
<ParamField body="Fallback.render" type="ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, AvatarFallbackState>">
Replaces the fallback span. Forward the supplied props and ref, and provide its accessible label or decorative attributes.
</ParamField>
<ParamField body="Fallback.style" type="CSSProperties | ((state: AvatarFallbackState) => CSSProperties | undefined)">
Style applied to the element, or a function that
returns a style object based on the component's state.
</ParamField>