Surfaces
AlertDialog
실행 전 확인이나 경고처럼 답을 받아야 하는 짧은 창을 띄울 때 씁니다.
Installation
npm install @olundot/ui @olundot/tokensimport { AlertDialog } from "@olundot/ui";Props
공통
Prop
Type
확인 모드
confirmLabel을 주면 확인 모드입니다.
Prop
Type
알림 모드
Prop
Type
Examples
되돌리기 어려운 액션
입력으로 한 번 더 확인
본문에 입력 하나를 두고, 입력이 맞을 때 confirmDisabled를 풉니다.
알림 모드
confirmLabel이 없으면 버튼 하나로 닫습니다.