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

알럿

원문 보기 위키 갱신

알럿 (Alert)

화면에서 눈길을 끄는 방식으로 경고 정보를 보여줄 때 쓰는 컴포넌트예요. 알림 안내부터 닫기 동작까지, Alert가 어떤 속성을 제공하는지 이 글에서 확인해 보세요.

출처: 문서

본문

API

Alert

속성 설명 타입 기본값
banner 배너 형태로 표시할지 여부 boolean -
closable Alert를 닫을 수 있는지 여부 boolean -
showIcon 아이콘을 표시할지 여부 boolean true
type Alert의 유형 'info' | 'success' | 'warning' | 'error' info
action 커스텀 액션 아이템 ReactNode -
closeElement 커스텀 닫기 버튼 ReactNode -
content Alert 내용 ReactNode -
icon 커스텀 아이콘. showIcon이 true일 때 동작해요 ReactNode -
title Alert 제목 ReactNode -
className 추가 css 클래스 string | string[] -
style 추가 스타일 CSSProperties -
afterClose Alert 닫기 애니메이션이 끝났을 때 호출되는 콜백 () => void -
onClose Alert가 닫혔을 때 호출되는 콜백 (e) => void -

더 알아보기 (Learn more)

Alert 컴포넌트의 더 많은 내용은 Arco Design 공식 문서(https://arco.design/themes/design/1/official/docs/en-US/components/alert)에서 확인할 수 있어요.