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

태그 그룹

원문 보기 위키 갱신

태그 그룹 (Tag Group)

태그 그룹은 여러 개의 태그를 관리하는 컴포넌트예요. 관련 태그들을 함께 묶어 콘텐츠를 분류할 때 사용한답니다.

출처: 문서

본문

TagGroup 컴포넌트

여러 개의 태그를 관리하는 컴포넌트예요.

  • 키워드: tag, group, multiple, labels, chips
  • 카테고리: data-display
  • 상태: general-availability

예시

import TagGroup from '@atlaskit/tag-group/tag-group';
import Tag from '@atlaskit/tag/removable-tag';
const Example = (): React.JSX.Element => (
	<TagGroup label="Tags for work item">
		<Tag text="Priority: High" color="red" />
		<Tag text="Status: Active" color="green" />
		<Tag text="Type: Bug" color="blue" />
	</TagGroup>
);
export default Example;

Props

Prop Type Description
alignment "end" | "start" Sets whether the tags should be aligned to the start or the end of the component
children string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal Tags to render within the tag group (required)
label string Refers to an aria-label attribute
titleId string ID referenced by the tag group wrapper's aria-labelledby attribute

사용 지침

  • 관련 태그들을 그룹으로 묶을 때 사용해요
  • 태그 정렬과 간격을 고려해요
  • 콘텐츠를 분류하는 데 사용해요
  • 명확한 태그 관계를 제공해요

콘텐츠 지침

  • 일관된 태그 명명을 사용해요
  • 태그 텍스트를 간결하게 유지해요
  • 의미 있는 태그 카테고리를 사용해요
  • 태그 계층 구조를 고려해요

접근성 지침

  • 명확한 태그 라벨을 제공해요
  • 적절한 키보드 탐색을 보장해요
  • 적절한 그룹화 의미(semantics)를 사용해요
  • 스크린 리더 알림을 고려해요

더 알아보기 (Learn more)