mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
67165a78fc
* docs: live demo * chore: bump dumi * chore: fix lint * chore: fix lint * chore: update demo * chore: bump dumi * docs: enhance live demo * docs: update text
22 lines
458 B
TypeScript
22 lines
458 B
TypeScript
import type { FC } from 'react';
|
|
import React from 'react';
|
|
import DumiLiveEditor from 'dumi/theme-default/slots/LiveEditor';
|
|
|
|
const LiveEditor: FC = () => (
|
|
<DumiLiveEditor
|
|
style={{
|
|
fontSize: 13,
|
|
lineHeight: 2,
|
|
fontFamily: `'Lucida Console', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,
|
|
}}
|
|
padding={{
|
|
top: 12,
|
|
right: 16,
|
|
bottom: 12,
|
|
left: 16,
|
|
}}
|
|
/>
|
|
);
|
|
|
|
export default LiveEditor;
|