본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

아바타 그룹

원문 보기 위키 갱신

아바타 그룹 (Avatar Group)

아바타 그룹은 여러 아바타를 하나의 그룹으로 보여주는 컴포넌트예요. 겹침(overlap)과 넘침(overflow) 처리를 지원해요.

출처: 문서

본문

AvatarGroup 컴포넌트

여러 아바타를 그룹으로 표시하며 겹침과 넘침 처리를 지원하는 컴포넌트예요.

  • Keywords: avatar, group, multiple, users, team, overlap, facepile
  • Categories: data-display
  • Status: general-availability

예시

import AvatarGroup from '@atlaskit/avatar-group/avatar-group';
const Example = (): React.JSX.Element => (
	<AvatarGroup
		appearance="stack"
		size="large"
		onAvatarClick={console.log}
		data={[
			{ key: 'uid1', name: 'Bob Smith' },
			{ key: 'uid2', name: 'Design System Team', appearance: 'square' },
			{ key: 'uid3', name: 'Review Agent', appearance: 'hexagon' },
			{ key: 'uid4', name: 'Carol Davis' },
		]}
		maxCount={3}
	/>
);
export default Example;

Props

Prop Type Description
appearance "grid" | "stack" Indicates the layout of the avatar group
avatar AvatarComponent | React.ElementType<AvatarProps, keyof React.JSX.IntrinsicElements> Component used to render each avatar
borderColor string Typically the background color that the avatar is presented on
boundariesElement "viewport" | "window" | "scrollParent" Element the overflow popup should be attached to
data (AvatarPropTypes & { name: string; key?: string | number; })[] An array of avatar prop data, that are spread onto each avatar component (required)
isTooltipDisabled boolean Disables tooltips
label string Text to be used as aria-label for the list of avatars
maxCount number The maximum number of avatars allowed in the list
moreIndicatorLabel string Text to be used as aria-label for the more indicator
onAvatarClick (event: React.MouseEvent<Element, MouseEvent>, analyticsEvent: AnalyticsEvent, index: number) => void Handle the click event on the avatar item
onMoreClick (event: React.MouseEvent<Element, MouseEvent>) => void Take control of the click event on the more indicator
overrides AvatarGroupOverrides Custom overrides for the composed components
shouldPopupRenderToParent boolean Determines whether the 'show more' popup has shouldRenderToParent applied
showMoreButtonProps { defaultChecked?: boolean; defaultValue?: string | number | readonly string[]; suppressContentEditableWarning?: boolean; suppressHydrationWarning?: boolean; accessKey?: string; autoCapitalize?: (string & {}) | ... 5 more ... | "characters"; ... 257 more ...; onTransitionEndCapture?: React.TransitionEventHandler<...... Provide additional props to the MoreButton
size "small" | "medium" | "large" | "xlarge" | "xxlarge" Defines the size of the avatar
tooltipPosition "top" | "bottom" Where the tooltip should appear relative to its target

사용 지침

  • 여러 사용자나 팀 구성원을 표시할 때 사용해요
  • 큰 그룹의 넘침(overflow) 동작을 고려해요
  • 맥락에 맞는 적절한 사이즈를 사용해요
  • 명확한 사용자 식별을 제공해요

콘텐츠 지침

  • 사용자에게 의미 있는 이름을 사용해요
  • 그룹의 맥락과 목적을 고려해요
  • 명확한 넘침 표시를 제공해요
  • 일관된 이름 규칙을 사용해요

접근성 지침

  • 아바타 그룹에 명확한 라벨을 제공해요
  • 적절한 넘침 처리를 사용해요
  • 키보드 탐색을 지원해요
  • 명확한 사용자 식별을 제공해요

더 알아보기 (Learn more)