mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
18 lines
557 B
TypeScript
18 lines
557 B
TypeScript
|
import React from 'react';
|
||
|
import { ConfigProvider, Drawer } from 'antd';
|
||
|
|
||
|
/** Test usage. Do not use in your production. */
|
||
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalDrawer } = Drawer;
|
||
|
|
||
|
export default () => (
|
||
|
<ConfigProvider
|
||
|
theme={{ components: { Drawer: { footerPaddingBlock: 0, footerPaddingInline: 0 } } }}
|
||
|
>
|
||
|
<div style={{ padding: 32, background: '#e6e6e6' }}>
|
||
|
<InternalDrawer title="Hello Title" style={{ height: 300 }} footer="Footer!">
|
||
|
Hello Content
|
||
|
</InternalDrawer>
|
||
|
</div>
|
||
|
</ConfigProvider>
|
||
|
);
|