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

Popconfirm

원문 보기 위키 갱신

Popconfirm (삭제 확인)

Popconfirm은 어떤 동작에 대해 간단한 확인 창을 띄워 주는 컴포넌트예요. 삭제처럼 되돌리기 어려운 작업 앞에서 한 번 더 확인하게 만들 때 유용합니다.

출처: 문서

본문

API

Popconfirm

속성 설명 타입 기본값 버전
autoFocus 확인 창 안의 첫 번째 포커스 가능한 요소에 자동으로 포커스를 줄지 여부 boolean - -
defaultPopupVisible 확인 창이 기본으로 보이는 상태일지 여부 boolean - -
disabled 비활성화할지 여부 boolean - 2.11.0
focusLock 확인 창 안으로 포커스를 가둘지 여부 boolean - -
popupVisible 확인 창이 보이는 상태인지 여부 boolean - -
unmountOnExit 숨겼을 때 확인 창을 파괴할지 여부 boolean true -
okType ok 버튼의 종류 ButtonProps['type'] primary -
position 타깃을 기준으로 한 확인 창의 위치. | 'top'| 'tl'| 'tr'| 'bottom'| 'bl'| 'br'| 'left'| 'lt'| 'lb'| 'right'| 'rt'| 'rb' top -
trigger 트리거 방식 TriggerProps['trigger'] click -
cancelText 취소(cancel) 버튼의 텍스트 ReactNode - -
icon 확인 창의 아이콘을 커스터마이즈해요 ReactNode <IconExclamationCircleFill /> -
okText ok 버튼의 텍스트 ReactNode - -
cancelButtonProps 취소(cancel) 버튼의 props ButtonProps - -
className 추가 css 클래스 string | string[] - -
okButtonProps ok 버튼의 props ButtonProps - -
onOk ok 버튼을 클릭했을 때 호출되는 콜백. 콜백의 event 파라미터는 2.29.0부터 지원해요 (e: React.MouseEvent) => Promise<any> | void - -
style 추가 스타일 CSSProperties - -
triggerProps Trigger 컴포넌트의 props Partial<TriggerProps> - -
content Popconfirm의 내용. 함수 타입은 2.48.0부터 지원해요 ReactNode | (() => ReactNode) - 2.44.0
getPopupContainer 확인 창이 렌더링될 부모 노드. (node: HTMLElement) => Element - -
onCancel 취소(cancel) 버튼을 클릭했을 때 호출되는 콜백. 콜백의 event 파라미터는 2.29.0부터 지원해요 (e: React.MouseEvent) => void - -
onVisibleChange 확인 창의 표시 상태가 바뀌었을 때 호출되는 콜백 (visible: boolean) => void - -
title Popconfirm의 제목. 함수 타입은 2.48.0부터 지원해요 ReactNode | (() => ReactNode) - -

더 알아보기

Popconfirm 컴포넌트의 더 자세한 내용은 Arco Design 공식 문서에서 확인해 보세요.