You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
621 B
29 lines
621 B
2 years ago
|
import React, { useState } from 'react';
|
||
|
import { Button, Modal } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => {
|
||
|
const [open, setOpen] = useState(false);
|
||
|
|
||
|
return (
|
||
|
<>
|
||
|
<Button type="primary" onClick={() => setOpen(true)}>
|
||
|
Open Modal of 1000px width
|
||
|
</Button>
|
||
|
<Modal
|
||
|
title="Modal 1000px width"
|
||
|
centered
|
||
|
open={open}
|
||
|
onOk={() => setOpen(false)}
|
||
|
onCancel={() => setOpen(false)}
|
||
|
width={1000}
|
||
|
>
|
||
|
<p>some contents...</p>
|
||
|
<p>some contents...</p>
|
||
|
<p>some contents...</p>
|
||
|
</Modal>
|
||
|
</>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default App;
|