CustomAlert 컴포넌트는 사용자 정의 알림 대화 상자를 생성합니다. 이 컴포넌트는 트리거 버튼을 클릭하면 나타나는 알림 대화 상자를 포함합니다.
<CustomAlert trigger={{ text: 'Delete', variant: 'destructive' }} alert={{ title: 'Are you sure?', description: 'This action cannot be undone.', type: 'warning' }} onConfirm={() => console.log('Confirmed')} onCancel={() => console.log('Cancelled')}/> Copy
<CustomAlert trigger={{ text: 'Delete', variant: 'destructive' }} alert={{ title: 'Are you sure?', description: 'This action cannot be undone.', type: 'warning' }} onConfirm={() => console.log('Confirmed')} onCancel={() => console.log('Cancelled')}/>
CustomAlert 컴포넌트의 속성
사용자 정의 알림 대화 상자 컴포넌트
Description
CustomAlert 컴포넌트는 사용자 정의 알림 대화 상자를 생성합니다. 이 컴포넌트는 트리거 버튼을 클릭하면 나타나는 알림 대화 상자를 포함합니다.
Example