mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
7b3adcb5ae
* fix: wireframe style for popconfirm * chore: add demos
22 lines
777 B
TypeScript
22 lines
777 B
TypeScript
import React from 'react';
|
|
import { ConfigProvider, Modal } from 'antd';
|
|
|
|
/** Test usage. Do not use in your production. */
|
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalPanel } = Modal;
|
|
|
|
export default () => (
|
|
<ConfigProvider theme={{ token: { wireframe: true } }}>
|
|
<div style={{ display: 'flex', flexDirection: 'column', rowGap: 16 }}>
|
|
<InternalPanel title="Hello World!" style={{ width: '100%', height: 200 }}>
|
|
Hello World?!
|
|
</InternalPanel>
|
|
<InternalPanel type="success" style={{ width: 200, height: 150 }}>
|
|
A good news!
|
|
</InternalPanel>
|
|
<InternalPanel title="Confirm This?" type="confirm" style={{ width: 300, height: 200 }}>
|
|
Some descriptions.
|
|
</InternalPanel>
|
|
</div>
|
|
</ConfigProvider>
|
|
);
|