|
1
|
{ |
|
2
|
"description": "This component is based on the `div` element and supports all of its props", |
|
3
|
"methods": [], |
|
4
|
"displayName": "CodeBlock", |
|
5
|
"props": { |
|
6
|
"snippets": { |
|
7
|
"required": true, |
|
8
|
"tsType": { |
|
9
|
"name": "Array", |
|
10
|
"elements": [ |
|
11
|
{ |
|
12
|
"name": "signature", |
|
13
|
"type": "object", |
|
14
|
"raw": "{\n /**\n * The label of the code snippet's tab.\n */\n label: string\n /**\n * The language of the code snippet. For example, `tsx`.\n */\n language: string\n /**\n * The code snippet.\n */\n code: string\n /**\n * Whether to hide the line numbers shown as the side of the code snippet.\n */\n hideLineNumbers?: boolean\n /**\n * Whether to hide the copy button.\n */\n hideCopy?: boolean\n}", |
|
15
|
"signature": { |
|
16
|
"properties": [ |
|
17
|
{ |
|
18
|
"key": "label", |
|
19
|
"value": { |
|
20
|
"name": "string", |
|
21
|
"required": true |
|
22
|
}, |
|
23
|
"description": "The label of the code snippet's tab." |
|
24
|
}, |
|
25
|
{ |
|
26
|
"key": "language", |
|
27
|
"value": { |
|
28
|
"name": "string", |
|
29
|
"required": true |
|
30
|
}, |
|
31
|
"description": "The language of the code snippet. For example, `tsx`." |
|
32
|
}, |
|
33
|
{ |
|
34
|
"key": "code", |
|
35
|
"value": { |
|
36
|
"name": "string", |
|
37
|
"required": true |
|
38
|
}, |
|
39
|
"description": "The code snippet." |
|
40
|
}, |
|
41
|
{ |
|
42
|
"key": "hideLineNumbers", |
|
43
|
"value": { |
|
44
|
"name": "boolean", |
|
45
|
"required": false |
|
46
|
}, |
|
47
|
"description": "Whether to hide the line numbers shown as the side of the code snippet." |
|
48
|
}, |
|
49
|
{ |
|
50
|
"key": "hideCopy", |
|
51
|
"value": { |
|
52
|
"name": "boolean", |
|
53
|
"required": false |
|
54
|
}, |
|
55
|
"description": "Whether to hide the copy button." |
|
56
|
} |
|
57
|
] |
|
58
|
} |
|
59
|
} |
|
60
|
], |
|
61
|
"raw": "CodeSnippet[]" |
|
62
|
}, |
|
63
|
"description": "The code snippets." |
|
64
|
} |
|
65
|
} |
|
66
|
} |