You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2023. It is now read-only.
description:'To give the code block a browser window look.',
46
61
},
62
+
cssPath: {
63
+
type:'string | undefined',
64
+
required:false,
65
+
default:'undefined',
66
+
description:'Used to load the css from a specified location instead of the component using the CDN location. If you want to dynamically change the theme, you will also need to change the theme prop.',
67
+
},
47
68
code: {
48
-
type:'[Object, Array, String, Number]',
69
+
type:'object | string | number',
49
70
required:true,
50
71
default:'',
51
72
description:'The code to be displayed in the code block.',
52
73
},
53
74
codeBlockRadius: {
54
-
type:'String',
75
+
type:'string',
55
76
required:false,
56
77
default:'0.5rem',
57
78
description:'The border radius of the code block.',
58
79
},
59
80
copyButton: {
60
-
type:Boolean,
81
+
type:'boolean',
61
82
required:false,
62
83
default:true,
63
84
description:'To show a copy button within the code block',
64
85
},
65
86
copyIcons: {
66
-
type:'Boolean',
87
+
type:'boolean',
67
88
required:false,
68
89
default:true,
69
90
description:'To show the copy icons on the copy code tab.',
70
91
},
71
92
copyTab: {
72
-
type:'Boolean',
93
+
type:'boolean',
73
94
required:false,
74
95
default:true,
75
96
description:'To show the copy code tab.',
76
97
},
77
98
copyFailedText: {
78
-
type:'String',
99
+
type:'string',
79
100
required:false,
80
101
default:'Copy failed!',
81
102
description:'The text to be displayed when the code copy failed.',
82
103
},
83
104
copyText: {
84
-
type:'String',
105
+
type:'string',
85
106
required:false,
86
107
default:'Copy Code',
87
108
description:'The text to be displayed on the copy tab.',
88
109
},
89
110
copySuccessText: {
90
-
type:'String',
111
+
type:'string',
91
112
required:false,
92
113
default:'Copied!',
93
114
description:'The text to be displayed when the code copy was successful.',
94
115
},
95
116
floatingTabs: {
96
-
type:'Boolean',
117
+
type:'boolean',
97
118
required:false,
98
119
default:true,
99
120
description:'To make the tabs float on top of the code block.',
100
121
},
101
122
height: {
102
-
type:'[String, Number]',
123
+
type:'string | number',
103
124
required:false,
104
125
default:'auto',
105
126
description:'The height of the code block.',
106
127
},
107
128
highlightjs: {
108
-
type:'Boolean',
129
+
type:'boolean',
109
130
required:false,
110
131
default:'false',
111
132
description:'Specifies that the Highlight.js library should be used.',
@@ -117,67 +138,67 @@ const componentProps = {
117
138
description:'The number of spaces to indent the code for json.',
118
139
},
119
140
label: {
120
-
type:'String',
141
+
type:'string',
121
142
required:false,
122
143
default:'',
123
144
description:'The label to be displayed on the code block.',
124
145
},
125
146
lang: {
126
-
type:'String',
147
+
type:'string',
127
148
required:false,
128
149
default:'javascript',
129
150
description:'The language of the code.',
130
151
},
131
152
maxHeight: {
132
-
type:'[String, Number]',
153
+
type:'string | number',
133
154
required:false,
134
155
default:'auto',
135
156
description:'The max height of the code block.',
136
157
},
137
158
persistentCopyButton: {
138
-
type:'Boolean',
159
+
type:'boolean',
139
160
required:false,
140
161
default:false,
141
162
description:'To show a persistent copy button within the code block',
142
163
},
143
164
prismjs: {
144
-
type:'Boolean',
165
+
type:'boolean',
145
166
required:false,
146
167
default:'true',
147
168
description:'Specifies that the PrismJS library should be used.',
148
169
},
149
170
prismPlugin: {
150
-
type:'Boolean',
171
+
type:'boolean',
151
172
required:false,
152
173
default:'false',
153
174
description:'Specifies that a PrismJS plugin is being used. This is needed for the plugin to work properly.',
154
175
},
155
176
runTab: {
156
-
type:'Boolean',
177
+
type:'boolean',
157
178
required:false,
158
179
default:false,
159
180
description:'To show the run tab.',
160
181
},
161
182
runText: {
162
-
type:'String',
183
+
type:'string',
163
184
required:false,
164
185
default:'Run',
165
186
description:'The text to be displayed on the run tab.',
166
187
},
167
188
tabGap: {
168
-
type:'String',
189
+
type:'string',
169
190
required:false,
170
191
default:'0.25rem',
171
192
description:'The gap between the tabs.',
172
193
},
173
194
tabs: {
174
-
type:'Boolean',
195
+
type:'boolean',
175
196
required:false,
176
197
default:false,
177
198
description:'To show the tabs. This will show/hide all tabs.',
0 commit comments