UNPKG

polestar-ui-kit

Version:

## Install

32 lines (26 loc) 751 B
Confirm component example: [Ant Modal API](https://ant.design/components/modal/) ```jsx static import React from 'react'; import { Confirm, Button } from 'polestar-ui-kit'; class MyComponent extends React.Component { onClick = () => { Confirm({ title: '삭제 하시겠습니까?', content: '삭제하시면 사용자와 연관된 정보가 모두 지워집니다.', onOk() { console.info('Ok'); }, onCancel() { console.log('Cancel'); }, }); } render() { return ( <Button onClick={this.onClick}>Confirm</Button> ); } } export default MyComponent; ```