Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5b64157

Browse files
committed
setup markdown example
1 parent75f23e1 commit5b64157

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

‎web-app/src/components/Step/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import*asReactfrom'react'
2-
importMarkdownfrom'../Markdown'
31
import{Checkbox}from'@alifd/next'
2+
import*asReactfrom'react'
43
// import CC from '../../typings/client'
54
importCRfrom'typings'
5+
importMarkdownfrom'../Markdown'
66

77
conststyles={
88
card:{

‎web-app/stories/Step.stories.tsx

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
importReactfrom'react'
22

3+
import{object,withKnobs}from'@storybook/addon-knobs'
34
import{storiesOf}from'@storybook/react'
4-
import{withKnobs,object}from'@storybook/addon-knobs'
55
importSideBarDecoratorfrom'./utils/SideBarDecorator'
66

77
importStepfrom'../src/components/Step'
@@ -23,3 +23,26 @@ storiesOf('Tutorial SideBar', module)
2323
})}
2424
/>
2525
))
26+
.add('Step Markdown',()=>(
27+
<Step
28+
content={object('content',{
29+
text:`Markdown included \`code\`, *bold*, & _italics_.
30+
\`\`\`
31+
var a = 12
32+
\`\`\`
33+
34+
Headers can be added:
35+
36+
# h1
37+
## h2
38+
### h3
39+
#### h4
40+
##### h5
41+
`,
42+
})}
43+
status={object('status',{
44+
active:false,
45+
complete:true,
46+
})}
47+
/>
48+
))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp