File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
Use this component to add a github gist on your website.
6
6
7
+ <p ><details >
8
+ <summary ><b >Preview</b ></summary >
9
+ <p ><img src =" https://i.imgur.com/4EYDskB.png " /></p >
10
+ </details ></p >
11
+
7
12
Get the id from the gist url ` https://gist.github.com/{your_name}/{id} ` and set it as a property of the component.
8
13
9
14
## Example
@@ -20,6 +25,8 @@ React.render(
20
25
);
21
26
```
22
27
28
+ [ ![ Edit react-gist-example-single-file] ( https://codesandbox.io/static/img/play-codesandbox.svg )] ( https://codesandbox.io/s/reactgistexamplesinglefile-z9vkc?fontsize=14 )
29
+
23
30
Multi-file gist:
24
31
25
32
``` js
@@ -32,6 +39,8 @@ React.render(
32
39
);
33
40
```
34
41
42
+ [ ![ Edit react-gist-example-multi-file] ( https://codesandbox.io/static/img/play-codesandbox.svg )] ( https://codesandbox.io/s/reactgistexamplemultifile-9rw4g?fontsize=14 )
43
+
35
44
## Usage
36
45
37
46
### ` <Gist id={string} file={string} /> `
You can’t perform that action at this time.
0 commit comments