mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 20:49:14 +08:00
34af3ec550
* feat: component token naming rules * dcos: update * feat: modal token rename * feat: rename result token * feat: statsitic token rename * feat: steps token remane * chore: update snapshot * chore: fix lint * feat: semantic part component * revert: button & notification * revert: files * chore: code clean
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>
|
|
);
|