-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.tsx
64 lines (54 loc) · 1.45 KB
/
app.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { Divider, Typography } from 'antd';
import { auto } from 'manate/react';
import React from 'react';
import MarkPlus from 'react-markplus';
const { Title } = Typography;
const App = auto(() => {
return (
<>
<Title>React MarkPlus Demo</Title>
<Divider />
<div className="container">
<MarkPlus markdown="# Light Theme" theme="light" />
</div>
<Divider />
<div className="container">
<MarkPlus markdown="# Dark Theme" theme="dark" />
</div>
<Divider />
<div className="container">
<MarkPlus markdown="# Hide Toolbar" toolbar="hide" />
</div>
<Divider />
<div className="container">
<MarkPlus markdown="# No Toolbar" toolbar="none" />
</div>
<Divider />
<div className="container">
<MarkPlus markdown="# Editor Only" mode="editor" toolbar="none" />
</div>
<Divider />
<div className="container">
<MarkPlus markdown="# Preview Only" mode="preview" toolbar="none" />
</div>
<Divider />
<div className="container">
<MarkPlus
markdown="# Custom Toolbar"
toolbarItems={[
'about',
'|',
<i
key="hippo"
className="fa fa-hippo"
onClick={() => {
alert('Hello world!');
}}
></i>,
]}
/>
</div>
</>
);
});
export default App;