Avatar item

An avatar item is a wrapper that goes around an avatar when it's displayed alongside text, such as a name or status.

Props

avatar

Required
Description

Slot to place an avatar element. Use @atlaskit/avatar.

Typestring | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

backgroundColor

Description

Change background color.

Typestring

href

Description

URL for avatars being used as a link.

Typestring

isDisabled

Description

Disable the item from being interactive.

Typeboolean

isTruncationDisabled

Description

By default, overflowing text is truncated if it exceeds the container width. Use this prop to disable this.

Typeboolean

label

Description

Used to provide better content to screen readers when using presence/status. Rather than a screen reader speaking "online, approved, John Smith", passing in an label allows a custom message like "John Smith (approved and online)".

Typestring

onClick

Description

Handler to be called on click.

Type(event: MouseEvent<Element, globalThis.MouseEvent>, analyticsEvent?: UIAnalyticsEvent) => void

primaryText

Description

PrimaryText text.

Typestring | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

ref

Description

Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref).

@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}

Typestring | Ref<HTMLElement>

secondaryText

Description

SecondaryText text.

Typestring | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

target

Description

Pass target down to the anchor, if href is provided.

Type"_blank" | "_self" | "_top" | "_parent"

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests.

Typestring
Was this page helpful?
We use this feedback to improve our documentation.
  • Design system
    • Get started
    • Foundations
    • Components
    • Rovo UI
    • Tools
    • Release phases
    • Contact us
© 2026 AtlassianTrademark, (opens new window)Privacy, (opens new window)License