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

섹션 메시지

원문 보기 위키 갱신

섹션 메시지 (Section Message)

섹션 메시지 컴포넌트는 섹션 단위의 메시지를 보여주는 컴포넌트예요.

출처: 문서

본문

SectionMessage 컴포넌트

섹션 단위의 메시지를 위한 컴포넌트예요.

  • Keywords: section, message, alert, inline, warning, notification, contextual, information
  • Categories: feedback
  • Status: general-availability

예시

import { Text } from '@atlaskit/primitives/compiled/text';
import SectionMessage from '@atlaskit/section-message/message';
import SectionMessageAction from '@atlaskit/section-message/message-action';
const _default_1: React.JSX.Element[] = [
	<SectionMessage appearance="information" title="Information">
		<Text>This is an informational message to help users understand something important.</Text>
	</SectionMessage>,
	<SectionMessage appearance="warning" title="Warning">
		<Text>Please review your settings before proceeding with this action.</Text>
	</SectionMessage>,
	<SectionMessage
		appearance="success"
		title="Success"
		actions={[
			<SectionMessageAction href="#">View Details</SectionMessageAction>,
			<SectionMessageAction href="#">Share Results</SectionMessageAction>,
		]}
	>
		<Text>Your changes have been saved successfully!</Text>
	</SectionMessage>,
];
export default _default_1;

Props

Prop Type Description
actions ReactElement<any, string | JSXElementConstructor<any>> | ReactElement<SectionMessageActionProps, string | JSXElementConstructor<...>>[] Actions for the user to take after reading the section message
appearance "warning" | "discovery" | "success" | "information" | "error" The appearance styling to use for the section message
children string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal The main content of the section message (required)
headingLevel "h1" | "h2" | "h3" | "h4" | "h5" | "h6" Allows the section message's title to be rendered as the specified HTML
heading element
icon "symbol" | "object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | ... 159 more ... | ComponentType<...> An Icon component to be rendered instead of the default icon for the component
isDismissible boolean Displays a dismiss button, that allows the user to dismiss the message
onDismiss () => void A callback function that is called when the user dismisses the message
title string The heading of the section message

사용 지침

  • 조치나 해결이 있을 때까지 유지되는 섹션 단위의 중요한 정보에 사용해요
  • 파괴적인 결과, 진행을 위한 조치 필요, 연결·인증 문제 상황에 사용해요
  • 구성: 아이콘+색상, 제목(선택), 설명, 액션(선택)이에요
  • 사이트 전체에는 Banner를, 이벤트 이후에는 Flag를, 더 작은 맥락에는 Inline message를 사용해요

콘텐츠 지침

  • 제목: 문제나 이유를 명확히 밝혀요
  • 설명: 명확하고 간결하며 공감적이게, 능동 동사를 사용해요
  • 비난을 피해요. "당신 쪽에 문제가 있습니다"보다 "저희가 문제를 겪고 있습니다"처럼 표현해요
  • 필요할 때 명확한 다음 단계를 제공해요

접근성 지침

  • 심각도 표시를 색상에만 의존하지 마세요
  • 막다른 길을 피하고 항상 진행 방법을 알려줘요
  • 목적지를 설명하는 설명적인 링크 텍스트를 사용해요
  • 섹션 메시지 콘텐츠가 스크린 리더에 알려지도록 해요
  • 텍스트 가독성을 위해 적절한 색상 대비를 사용해요
  • 명확하고 실행 가능한 메시지를 제공해요
  • 대화형 섹션 메시지의 키보드 탐색을 고려해요

더 알아보기 (Learn more)