reflex-components-code 0.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- reflex_components_code/__init__.py +1 -0
- reflex_components_code/code.py +524 -0
- reflex_components_code/code.pyi +1659 -0
- reflex_components_code/shiki_code_block.py +866 -0
- reflex_components_code/shiki_code_block.pyi +2252 -0
- reflex_components_code-0.9.0.dist-info/METADATA +15 -0
- reflex_components_code-0.9.0.dist-info/RECORD +8 -0
- reflex_components_code-0.9.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,1659 @@
|
|
|
1
|
+
"""Stub file for reflex_components_code/code.py"""
|
|
2
|
+
|
|
3
|
+
# ------------------- DO NOT EDIT ----------------------
|
|
4
|
+
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
|
+
# ------------------------------------------------------
|
|
6
|
+
import dataclasses
|
|
7
|
+
from collections.abc import Mapping, Sequence
|
|
8
|
+
from typing import Any, ClassVar, Literal
|
|
9
|
+
|
|
10
|
+
from reflex_base.components.component import Component, ComponentNamespace
|
|
11
|
+
from reflex_base.constants.colors import Color
|
|
12
|
+
from reflex_base.event import EventType, PointerEventInfo
|
|
13
|
+
from reflex_base.vars.base import Var
|
|
14
|
+
from reflex_components_core.core.breakpoints import Breakpoints
|
|
15
|
+
from reflex_components_core.core.markdown_component_map import MarkdownComponentMap
|
|
16
|
+
|
|
17
|
+
LiteralCodeLanguage = Literal[
|
|
18
|
+
"abap",
|
|
19
|
+
"abnf",
|
|
20
|
+
"actionscript",
|
|
21
|
+
"ada",
|
|
22
|
+
"agda",
|
|
23
|
+
"al",
|
|
24
|
+
"antlr4",
|
|
25
|
+
"apacheconf",
|
|
26
|
+
"apex",
|
|
27
|
+
"apl",
|
|
28
|
+
"applescript",
|
|
29
|
+
"aql",
|
|
30
|
+
"arduino",
|
|
31
|
+
"arff",
|
|
32
|
+
"asciidoc",
|
|
33
|
+
"asm6502",
|
|
34
|
+
"asmatmel",
|
|
35
|
+
"aspnet",
|
|
36
|
+
"autohotkey",
|
|
37
|
+
"autoit",
|
|
38
|
+
"avisynth",
|
|
39
|
+
"avro-idl",
|
|
40
|
+
"bash",
|
|
41
|
+
"basic",
|
|
42
|
+
"batch",
|
|
43
|
+
"bbcode",
|
|
44
|
+
"bicep",
|
|
45
|
+
"birb",
|
|
46
|
+
"bison",
|
|
47
|
+
"bnf",
|
|
48
|
+
"brainfuck",
|
|
49
|
+
"brightscript",
|
|
50
|
+
"bro",
|
|
51
|
+
"bsl",
|
|
52
|
+
"c",
|
|
53
|
+
"cfscript",
|
|
54
|
+
"chaiscript",
|
|
55
|
+
"cil",
|
|
56
|
+
"clike",
|
|
57
|
+
"clojure",
|
|
58
|
+
"cmake",
|
|
59
|
+
"cobol",
|
|
60
|
+
"coffeescript",
|
|
61
|
+
"concurnas",
|
|
62
|
+
"coq",
|
|
63
|
+
"core",
|
|
64
|
+
"cpp",
|
|
65
|
+
"crystal",
|
|
66
|
+
"csharp",
|
|
67
|
+
"cshtml",
|
|
68
|
+
"csp",
|
|
69
|
+
"css",
|
|
70
|
+
"css-extras",
|
|
71
|
+
"csv",
|
|
72
|
+
"cypher",
|
|
73
|
+
"d",
|
|
74
|
+
"dart",
|
|
75
|
+
"dataweave",
|
|
76
|
+
"dax",
|
|
77
|
+
"dhall",
|
|
78
|
+
"diff",
|
|
79
|
+
"django",
|
|
80
|
+
"dns-zone-file",
|
|
81
|
+
"docker",
|
|
82
|
+
"dot",
|
|
83
|
+
"ebnf",
|
|
84
|
+
"editorconfig",
|
|
85
|
+
"eiffel",
|
|
86
|
+
"ejs",
|
|
87
|
+
"elixir",
|
|
88
|
+
"elm",
|
|
89
|
+
"erb",
|
|
90
|
+
"erlang",
|
|
91
|
+
"etlua",
|
|
92
|
+
"excel-formula",
|
|
93
|
+
"factor",
|
|
94
|
+
"false",
|
|
95
|
+
"firestore-security-rules",
|
|
96
|
+
"flow",
|
|
97
|
+
"fortran",
|
|
98
|
+
"fsharp",
|
|
99
|
+
"ftl",
|
|
100
|
+
"gap",
|
|
101
|
+
"gcode",
|
|
102
|
+
"gdscript",
|
|
103
|
+
"gedcom",
|
|
104
|
+
"gherkin",
|
|
105
|
+
"git",
|
|
106
|
+
"glsl",
|
|
107
|
+
"gml",
|
|
108
|
+
"gn",
|
|
109
|
+
"go",
|
|
110
|
+
"go-module",
|
|
111
|
+
"graphql",
|
|
112
|
+
"groovy",
|
|
113
|
+
"haml",
|
|
114
|
+
"handlebars",
|
|
115
|
+
"haskell",
|
|
116
|
+
"haxe",
|
|
117
|
+
"hcl",
|
|
118
|
+
"hlsl",
|
|
119
|
+
"hoon",
|
|
120
|
+
"hpkp",
|
|
121
|
+
"hsts",
|
|
122
|
+
"http",
|
|
123
|
+
"ichigojam",
|
|
124
|
+
"icon",
|
|
125
|
+
"icu-message-format",
|
|
126
|
+
"idris",
|
|
127
|
+
"iecst",
|
|
128
|
+
"ignore",
|
|
129
|
+
"index",
|
|
130
|
+
"inform7",
|
|
131
|
+
"ini",
|
|
132
|
+
"io",
|
|
133
|
+
"j",
|
|
134
|
+
"java",
|
|
135
|
+
"javadoc",
|
|
136
|
+
"javadoclike",
|
|
137
|
+
"javascript",
|
|
138
|
+
"javastacktrace",
|
|
139
|
+
"jexl",
|
|
140
|
+
"jolie",
|
|
141
|
+
"jq",
|
|
142
|
+
"js-extras",
|
|
143
|
+
"js-templates",
|
|
144
|
+
"jsdoc",
|
|
145
|
+
"json",
|
|
146
|
+
"json5",
|
|
147
|
+
"jsonp",
|
|
148
|
+
"jsstacktrace",
|
|
149
|
+
"jsx",
|
|
150
|
+
"julia",
|
|
151
|
+
"keepalived",
|
|
152
|
+
"keyman",
|
|
153
|
+
"kotlin",
|
|
154
|
+
"kumir",
|
|
155
|
+
"kusto",
|
|
156
|
+
"latex",
|
|
157
|
+
"latte",
|
|
158
|
+
"less",
|
|
159
|
+
"lilypond",
|
|
160
|
+
"liquid",
|
|
161
|
+
"lisp",
|
|
162
|
+
"livescript",
|
|
163
|
+
"llvm",
|
|
164
|
+
"log",
|
|
165
|
+
"lolcode",
|
|
166
|
+
"lua",
|
|
167
|
+
"magma",
|
|
168
|
+
"makefile",
|
|
169
|
+
"markdown",
|
|
170
|
+
"markup",
|
|
171
|
+
"markup-templating",
|
|
172
|
+
"matlab",
|
|
173
|
+
"maxscript",
|
|
174
|
+
"mel",
|
|
175
|
+
"mermaid",
|
|
176
|
+
"mizar",
|
|
177
|
+
"mongodb",
|
|
178
|
+
"monkey",
|
|
179
|
+
"moonscript",
|
|
180
|
+
"n1ql",
|
|
181
|
+
"n4js",
|
|
182
|
+
"nand2tetris-hdl",
|
|
183
|
+
"naniscript",
|
|
184
|
+
"nasm",
|
|
185
|
+
"neon",
|
|
186
|
+
"nevod",
|
|
187
|
+
"nginx",
|
|
188
|
+
"nim",
|
|
189
|
+
"nix",
|
|
190
|
+
"nsis",
|
|
191
|
+
"objectivec",
|
|
192
|
+
"ocaml",
|
|
193
|
+
"opencl",
|
|
194
|
+
"openqasm",
|
|
195
|
+
"oz",
|
|
196
|
+
"parigp",
|
|
197
|
+
"parser",
|
|
198
|
+
"pascal",
|
|
199
|
+
"pascaligo",
|
|
200
|
+
"pcaxis",
|
|
201
|
+
"peoplecode",
|
|
202
|
+
"perl",
|
|
203
|
+
"php",
|
|
204
|
+
"php-extras",
|
|
205
|
+
"phpdoc",
|
|
206
|
+
"plsql",
|
|
207
|
+
"powerquery",
|
|
208
|
+
"powershell",
|
|
209
|
+
"processing",
|
|
210
|
+
"prolog",
|
|
211
|
+
"promql",
|
|
212
|
+
"properties",
|
|
213
|
+
"protobuf",
|
|
214
|
+
"psl",
|
|
215
|
+
"pug",
|
|
216
|
+
"puppet",
|
|
217
|
+
"pure",
|
|
218
|
+
"purebasic",
|
|
219
|
+
"purescript",
|
|
220
|
+
"python",
|
|
221
|
+
"q",
|
|
222
|
+
"qml",
|
|
223
|
+
"qore",
|
|
224
|
+
"qsharp",
|
|
225
|
+
"r",
|
|
226
|
+
"racket",
|
|
227
|
+
"reason",
|
|
228
|
+
"regex",
|
|
229
|
+
"rego",
|
|
230
|
+
"renpy",
|
|
231
|
+
"rest",
|
|
232
|
+
"rip",
|
|
233
|
+
"roboconf",
|
|
234
|
+
"robotframework",
|
|
235
|
+
"ruby",
|
|
236
|
+
"rust",
|
|
237
|
+
"sas",
|
|
238
|
+
"sass",
|
|
239
|
+
"scala",
|
|
240
|
+
"scheme",
|
|
241
|
+
"scss",
|
|
242
|
+
"shell-session",
|
|
243
|
+
"smali",
|
|
244
|
+
"smalltalk",
|
|
245
|
+
"smarty",
|
|
246
|
+
"sml",
|
|
247
|
+
"solidity",
|
|
248
|
+
"solution-file",
|
|
249
|
+
"soy",
|
|
250
|
+
"sparql",
|
|
251
|
+
"splunk-spl",
|
|
252
|
+
"sqf",
|
|
253
|
+
"sql",
|
|
254
|
+
"squirrel",
|
|
255
|
+
"stan",
|
|
256
|
+
"stylus",
|
|
257
|
+
"swift",
|
|
258
|
+
"systemd",
|
|
259
|
+
"t4-cs",
|
|
260
|
+
"t4-templating",
|
|
261
|
+
"t4-vb",
|
|
262
|
+
"tap",
|
|
263
|
+
"tcl",
|
|
264
|
+
"textile",
|
|
265
|
+
"toml",
|
|
266
|
+
"tremor",
|
|
267
|
+
"tsx",
|
|
268
|
+
"tt2",
|
|
269
|
+
"turtle",
|
|
270
|
+
"twig",
|
|
271
|
+
"typescript",
|
|
272
|
+
"typoscript",
|
|
273
|
+
"unrealscript",
|
|
274
|
+
"uorazor",
|
|
275
|
+
"uri",
|
|
276
|
+
"v",
|
|
277
|
+
"vala",
|
|
278
|
+
"vbnet",
|
|
279
|
+
"velocity",
|
|
280
|
+
"verilog",
|
|
281
|
+
"vhdl",
|
|
282
|
+
"vim",
|
|
283
|
+
"visual-basic",
|
|
284
|
+
"warpscript",
|
|
285
|
+
"wasm",
|
|
286
|
+
"web-idl",
|
|
287
|
+
"wiki",
|
|
288
|
+
"wolfram",
|
|
289
|
+
"wren",
|
|
290
|
+
"xeora",
|
|
291
|
+
"xml-doc",
|
|
292
|
+
"xojo",
|
|
293
|
+
"xquery",
|
|
294
|
+
"yaml",
|
|
295
|
+
"yang",
|
|
296
|
+
"zig",
|
|
297
|
+
]
|
|
298
|
+
|
|
299
|
+
def construct_theme_var(theme: str) -> Var[Theme]: ...
|
|
300
|
+
|
|
301
|
+
@dataclasses.dataclass(init=False)
|
|
302
|
+
class Theme:
|
|
303
|
+
a11y_dark: ClassVar[Var[Theme]] = construct_theme_var("a11yDark")
|
|
304
|
+
atom_dark: ClassVar[Var[Theme]] = construct_theme_var("atomDark")
|
|
305
|
+
cb: ClassVar[Var[Theme]] = construct_theme_var("cb")
|
|
306
|
+
coldark_cold: ClassVar[Var[Theme]] = construct_theme_var("coldarkCold")
|
|
307
|
+
coldark_dark: ClassVar[Var[Theme]] = construct_theme_var("coldarkDark")
|
|
308
|
+
coy: ClassVar[Var[Theme]] = construct_theme_var("coy")
|
|
309
|
+
coy_without_shadows: ClassVar[Var[Theme]] = construct_theme_var("coyWithoutShadows")
|
|
310
|
+
darcula: ClassVar[Var[Theme]] = construct_theme_var("darcula")
|
|
311
|
+
dark: ClassVar[Var[Theme]] = construct_theme_var("oneDark")
|
|
312
|
+
dracula: ClassVar[Var[Theme]] = construct_theme_var("dracula")
|
|
313
|
+
duotone_dark: ClassVar[Var[Theme]] = construct_theme_var("duotoneDark")
|
|
314
|
+
duotone_earth: ClassVar[Var[Theme]] = construct_theme_var("duotoneEarth")
|
|
315
|
+
duotone_forest: ClassVar[Var[Theme]] = construct_theme_var("duotoneForest")
|
|
316
|
+
duotone_light: ClassVar[Var[Theme]] = construct_theme_var("duotoneLight")
|
|
317
|
+
duotone_sea: ClassVar[Var[Theme]] = construct_theme_var("duotoneSea")
|
|
318
|
+
duotone_space: ClassVar[Var[Theme]] = construct_theme_var("duotoneSpace")
|
|
319
|
+
funky: ClassVar[Var[Theme]] = construct_theme_var("funky")
|
|
320
|
+
ghcolors: ClassVar[Var[Theme]] = construct_theme_var("ghcolors")
|
|
321
|
+
gruvbox_dark: ClassVar[Var[Theme]] = construct_theme_var("gruvboxDark")
|
|
322
|
+
gruvbox_light: ClassVar[Var[Theme]] = construct_theme_var("gruvboxLight")
|
|
323
|
+
holi_theme: ClassVar[Var[Theme]] = construct_theme_var("holiTheme")
|
|
324
|
+
hopscotch: ClassVar[Var[Theme]] = construct_theme_var("hopscotch")
|
|
325
|
+
light: ClassVar[Var[Theme]] = construct_theme_var("oneLight")
|
|
326
|
+
lucario: ClassVar[Var[Theme]] = construct_theme_var("lucario")
|
|
327
|
+
material_dark: ClassVar[Var[Theme]] = construct_theme_var("materialDark")
|
|
328
|
+
material_light: ClassVar[Var[Theme]] = construct_theme_var("materialLight")
|
|
329
|
+
material_oceanic: ClassVar[Var[Theme]] = construct_theme_var("materialOceanic")
|
|
330
|
+
night_owl: ClassVar[Var[Theme]] = construct_theme_var("nightOwl")
|
|
331
|
+
nord: ClassVar[Var[Theme]] = construct_theme_var("nord")
|
|
332
|
+
okaidia: ClassVar[Var[Theme]] = construct_theme_var("okaidia")
|
|
333
|
+
one_dark: ClassVar[Var[Theme]] = construct_theme_var("oneDark")
|
|
334
|
+
one_light: ClassVar[Var[Theme]] = construct_theme_var("oneLight")
|
|
335
|
+
pojoaque: ClassVar[Var[Theme]] = construct_theme_var("pojoaque")
|
|
336
|
+
prism: ClassVar[Var[Theme]] = construct_theme_var("prism")
|
|
337
|
+
shades_of_purple: ClassVar[Var[Theme]] = construct_theme_var("shadesOfPurple")
|
|
338
|
+
solarized_dark_atom: ClassVar[Var[Theme]] = construct_theme_var("solarizedDarkAtom")
|
|
339
|
+
solarizedlight: ClassVar[Var[Theme]] = construct_theme_var("solarizedlight")
|
|
340
|
+
synthwave84: ClassVar[Var[Theme]] = construct_theme_var("synthwave84")
|
|
341
|
+
tomorrow: ClassVar[Var[Theme]] = construct_theme_var("tomorrow")
|
|
342
|
+
twilight: ClassVar[Var[Theme]] = construct_theme_var("twilight")
|
|
343
|
+
vs: ClassVar[Var[Theme]] = construct_theme_var("vs")
|
|
344
|
+
vs_dark: ClassVar[Var[Theme]] = construct_theme_var("vsDark")
|
|
345
|
+
vsc_dark_plus: ClassVar[Var[Theme]] = construct_theme_var("vscDarkPlus")
|
|
346
|
+
xonokai: ClassVar[Var[Theme]] = construct_theme_var("xonokai")
|
|
347
|
+
z_touch: ClassVar[Var[Theme]] = construct_theme_var("zTouch")
|
|
348
|
+
|
|
349
|
+
for theme_name in dir(Theme):
|
|
350
|
+
if theme_name.startswith("_"):
|
|
351
|
+
continue
|
|
352
|
+
setattr(Theme, theme_name, getattr(Theme, theme_name)._replace(_var_type=Theme))
|
|
353
|
+
|
|
354
|
+
class CodeBlock(Component, MarkdownComponentMap):
|
|
355
|
+
@classmethod
|
|
356
|
+
def create(
|
|
357
|
+
cls,
|
|
358
|
+
*children,
|
|
359
|
+
theme: Theme | Var[Theme | str] | str | None = None,
|
|
360
|
+
language: Literal[
|
|
361
|
+
"abap",
|
|
362
|
+
"abnf",
|
|
363
|
+
"actionscript",
|
|
364
|
+
"ada",
|
|
365
|
+
"agda",
|
|
366
|
+
"al",
|
|
367
|
+
"antlr4",
|
|
368
|
+
"apacheconf",
|
|
369
|
+
"apex",
|
|
370
|
+
"apl",
|
|
371
|
+
"applescript",
|
|
372
|
+
"aql",
|
|
373
|
+
"arduino",
|
|
374
|
+
"arff",
|
|
375
|
+
"asciidoc",
|
|
376
|
+
"asm6502",
|
|
377
|
+
"asmatmel",
|
|
378
|
+
"aspnet",
|
|
379
|
+
"autohotkey",
|
|
380
|
+
"autoit",
|
|
381
|
+
"avisynth",
|
|
382
|
+
"avro-idl",
|
|
383
|
+
"bash",
|
|
384
|
+
"basic",
|
|
385
|
+
"batch",
|
|
386
|
+
"bbcode",
|
|
387
|
+
"bicep",
|
|
388
|
+
"birb",
|
|
389
|
+
"bison",
|
|
390
|
+
"bnf",
|
|
391
|
+
"brainfuck",
|
|
392
|
+
"brightscript",
|
|
393
|
+
"bro",
|
|
394
|
+
"bsl",
|
|
395
|
+
"c",
|
|
396
|
+
"cfscript",
|
|
397
|
+
"chaiscript",
|
|
398
|
+
"cil",
|
|
399
|
+
"clike",
|
|
400
|
+
"clojure",
|
|
401
|
+
"cmake",
|
|
402
|
+
"cobol",
|
|
403
|
+
"coffeescript",
|
|
404
|
+
"concurnas",
|
|
405
|
+
"coq",
|
|
406
|
+
"core",
|
|
407
|
+
"cpp",
|
|
408
|
+
"crystal",
|
|
409
|
+
"csharp",
|
|
410
|
+
"cshtml",
|
|
411
|
+
"csp",
|
|
412
|
+
"css",
|
|
413
|
+
"css-extras",
|
|
414
|
+
"csv",
|
|
415
|
+
"cypher",
|
|
416
|
+
"d",
|
|
417
|
+
"dart",
|
|
418
|
+
"dataweave",
|
|
419
|
+
"dax",
|
|
420
|
+
"dhall",
|
|
421
|
+
"diff",
|
|
422
|
+
"django",
|
|
423
|
+
"dns-zone-file",
|
|
424
|
+
"docker",
|
|
425
|
+
"dot",
|
|
426
|
+
"ebnf",
|
|
427
|
+
"editorconfig",
|
|
428
|
+
"eiffel",
|
|
429
|
+
"ejs",
|
|
430
|
+
"elixir",
|
|
431
|
+
"elm",
|
|
432
|
+
"erb",
|
|
433
|
+
"erlang",
|
|
434
|
+
"etlua",
|
|
435
|
+
"excel-formula",
|
|
436
|
+
"factor",
|
|
437
|
+
"false",
|
|
438
|
+
"firestore-security-rules",
|
|
439
|
+
"flow",
|
|
440
|
+
"fortran",
|
|
441
|
+
"fsharp",
|
|
442
|
+
"ftl",
|
|
443
|
+
"gap",
|
|
444
|
+
"gcode",
|
|
445
|
+
"gdscript",
|
|
446
|
+
"gedcom",
|
|
447
|
+
"gherkin",
|
|
448
|
+
"git",
|
|
449
|
+
"glsl",
|
|
450
|
+
"gml",
|
|
451
|
+
"gn",
|
|
452
|
+
"go",
|
|
453
|
+
"go-module",
|
|
454
|
+
"graphql",
|
|
455
|
+
"groovy",
|
|
456
|
+
"haml",
|
|
457
|
+
"handlebars",
|
|
458
|
+
"haskell",
|
|
459
|
+
"haxe",
|
|
460
|
+
"hcl",
|
|
461
|
+
"hlsl",
|
|
462
|
+
"hoon",
|
|
463
|
+
"hpkp",
|
|
464
|
+
"hsts",
|
|
465
|
+
"http",
|
|
466
|
+
"ichigojam",
|
|
467
|
+
"icon",
|
|
468
|
+
"icu-message-format",
|
|
469
|
+
"idris",
|
|
470
|
+
"iecst",
|
|
471
|
+
"ignore",
|
|
472
|
+
"index",
|
|
473
|
+
"inform7",
|
|
474
|
+
"ini",
|
|
475
|
+
"io",
|
|
476
|
+
"j",
|
|
477
|
+
"java",
|
|
478
|
+
"javadoc",
|
|
479
|
+
"javadoclike",
|
|
480
|
+
"javascript",
|
|
481
|
+
"javastacktrace",
|
|
482
|
+
"jexl",
|
|
483
|
+
"jolie",
|
|
484
|
+
"jq",
|
|
485
|
+
"js-extras",
|
|
486
|
+
"js-templates",
|
|
487
|
+
"jsdoc",
|
|
488
|
+
"json",
|
|
489
|
+
"json5",
|
|
490
|
+
"jsonp",
|
|
491
|
+
"jsstacktrace",
|
|
492
|
+
"jsx",
|
|
493
|
+
"julia",
|
|
494
|
+
"keepalived",
|
|
495
|
+
"keyman",
|
|
496
|
+
"kotlin",
|
|
497
|
+
"kumir",
|
|
498
|
+
"kusto",
|
|
499
|
+
"latex",
|
|
500
|
+
"latte",
|
|
501
|
+
"less",
|
|
502
|
+
"lilypond",
|
|
503
|
+
"liquid",
|
|
504
|
+
"lisp",
|
|
505
|
+
"livescript",
|
|
506
|
+
"llvm",
|
|
507
|
+
"log",
|
|
508
|
+
"lolcode",
|
|
509
|
+
"lua",
|
|
510
|
+
"magma",
|
|
511
|
+
"makefile",
|
|
512
|
+
"markdown",
|
|
513
|
+
"markup",
|
|
514
|
+
"markup-templating",
|
|
515
|
+
"matlab",
|
|
516
|
+
"maxscript",
|
|
517
|
+
"mel",
|
|
518
|
+
"mermaid",
|
|
519
|
+
"mizar",
|
|
520
|
+
"mongodb",
|
|
521
|
+
"monkey",
|
|
522
|
+
"moonscript",
|
|
523
|
+
"n1ql",
|
|
524
|
+
"n4js",
|
|
525
|
+
"nand2tetris-hdl",
|
|
526
|
+
"naniscript",
|
|
527
|
+
"nasm",
|
|
528
|
+
"neon",
|
|
529
|
+
"nevod",
|
|
530
|
+
"nginx",
|
|
531
|
+
"nim",
|
|
532
|
+
"nix",
|
|
533
|
+
"nsis",
|
|
534
|
+
"objectivec",
|
|
535
|
+
"ocaml",
|
|
536
|
+
"opencl",
|
|
537
|
+
"openqasm",
|
|
538
|
+
"oz",
|
|
539
|
+
"parigp",
|
|
540
|
+
"parser",
|
|
541
|
+
"pascal",
|
|
542
|
+
"pascaligo",
|
|
543
|
+
"pcaxis",
|
|
544
|
+
"peoplecode",
|
|
545
|
+
"perl",
|
|
546
|
+
"php",
|
|
547
|
+
"php-extras",
|
|
548
|
+
"phpdoc",
|
|
549
|
+
"plsql",
|
|
550
|
+
"powerquery",
|
|
551
|
+
"powershell",
|
|
552
|
+
"processing",
|
|
553
|
+
"prolog",
|
|
554
|
+
"promql",
|
|
555
|
+
"properties",
|
|
556
|
+
"protobuf",
|
|
557
|
+
"psl",
|
|
558
|
+
"pug",
|
|
559
|
+
"puppet",
|
|
560
|
+
"pure",
|
|
561
|
+
"purebasic",
|
|
562
|
+
"purescript",
|
|
563
|
+
"python",
|
|
564
|
+
"q",
|
|
565
|
+
"qml",
|
|
566
|
+
"qore",
|
|
567
|
+
"qsharp",
|
|
568
|
+
"r",
|
|
569
|
+
"racket",
|
|
570
|
+
"reason",
|
|
571
|
+
"regex",
|
|
572
|
+
"rego",
|
|
573
|
+
"renpy",
|
|
574
|
+
"rest",
|
|
575
|
+
"rip",
|
|
576
|
+
"roboconf",
|
|
577
|
+
"robotframework",
|
|
578
|
+
"ruby",
|
|
579
|
+
"rust",
|
|
580
|
+
"sas",
|
|
581
|
+
"sass",
|
|
582
|
+
"scala",
|
|
583
|
+
"scheme",
|
|
584
|
+
"scss",
|
|
585
|
+
"shell-session",
|
|
586
|
+
"smali",
|
|
587
|
+
"smalltalk",
|
|
588
|
+
"smarty",
|
|
589
|
+
"sml",
|
|
590
|
+
"solidity",
|
|
591
|
+
"solution-file",
|
|
592
|
+
"soy",
|
|
593
|
+
"sparql",
|
|
594
|
+
"splunk-spl",
|
|
595
|
+
"sqf",
|
|
596
|
+
"sql",
|
|
597
|
+
"squirrel",
|
|
598
|
+
"stan",
|
|
599
|
+
"stylus",
|
|
600
|
+
"swift",
|
|
601
|
+
"systemd",
|
|
602
|
+
"t4-cs",
|
|
603
|
+
"t4-templating",
|
|
604
|
+
"t4-vb",
|
|
605
|
+
"tap",
|
|
606
|
+
"tcl",
|
|
607
|
+
"textile",
|
|
608
|
+
"toml",
|
|
609
|
+
"tremor",
|
|
610
|
+
"tsx",
|
|
611
|
+
"tt2",
|
|
612
|
+
"turtle",
|
|
613
|
+
"twig",
|
|
614
|
+
"typescript",
|
|
615
|
+
"typoscript",
|
|
616
|
+
"unrealscript",
|
|
617
|
+
"uorazor",
|
|
618
|
+
"uri",
|
|
619
|
+
"v",
|
|
620
|
+
"vala",
|
|
621
|
+
"vbnet",
|
|
622
|
+
"velocity",
|
|
623
|
+
"verilog",
|
|
624
|
+
"vhdl",
|
|
625
|
+
"vim",
|
|
626
|
+
"visual-basic",
|
|
627
|
+
"warpscript",
|
|
628
|
+
"wasm",
|
|
629
|
+
"web-idl",
|
|
630
|
+
"wiki",
|
|
631
|
+
"wolfram",
|
|
632
|
+
"wren",
|
|
633
|
+
"xeora",
|
|
634
|
+
"xml-doc",
|
|
635
|
+
"xojo",
|
|
636
|
+
"xquery",
|
|
637
|
+
"yaml",
|
|
638
|
+
"yang",
|
|
639
|
+
"zig",
|
|
640
|
+
]
|
|
641
|
+
| Var[
|
|
642
|
+
Literal[
|
|
643
|
+
"abap",
|
|
644
|
+
"abnf",
|
|
645
|
+
"actionscript",
|
|
646
|
+
"ada",
|
|
647
|
+
"agda",
|
|
648
|
+
"al",
|
|
649
|
+
"antlr4",
|
|
650
|
+
"apacheconf",
|
|
651
|
+
"apex",
|
|
652
|
+
"apl",
|
|
653
|
+
"applescript",
|
|
654
|
+
"aql",
|
|
655
|
+
"arduino",
|
|
656
|
+
"arff",
|
|
657
|
+
"asciidoc",
|
|
658
|
+
"asm6502",
|
|
659
|
+
"asmatmel",
|
|
660
|
+
"aspnet",
|
|
661
|
+
"autohotkey",
|
|
662
|
+
"autoit",
|
|
663
|
+
"avisynth",
|
|
664
|
+
"avro-idl",
|
|
665
|
+
"bash",
|
|
666
|
+
"basic",
|
|
667
|
+
"batch",
|
|
668
|
+
"bbcode",
|
|
669
|
+
"bicep",
|
|
670
|
+
"birb",
|
|
671
|
+
"bison",
|
|
672
|
+
"bnf",
|
|
673
|
+
"brainfuck",
|
|
674
|
+
"brightscript",
|
|
675
|
+
"bro",
|
|
676
|
+
"bsl",
|
|
677
|
+
"c",
|
|
678
|
+
"cfscript",
|
|
679
|
+
"chaiscript",
|
|
680
|
+
"cil",
|
|
681
|
+
"clike",
|
|
682
|
+
"clojure",
|
|
683
|
+
"cmake",
|
|
684
|
+
"cobol",
|
|
685
|
+
"coffeescript",
|
|
686
|
+
"concurnas",
|
|
687
|
+
"coq",
|
|
688
|
+
"core",
|
|
689
|
+
"cpp",
|
|
690
|
+
"crystal",
|
|
691
|
+
"csharp",
|
|
692
|
+
"cshtml",
|
|
693
|
+
"csp",
|
|
694
|
+
"css",
|
|
695
|
+
"css-extras",
|
|
696
|
+
"csv",
|
|
697
|
+
"cypher",
|
|
698
|
+
"d",
|
|
699
|
+
"dart",
|
|
700
|
+
"dataweave",
|
|
701
|
+
"dax",
|
|
702
|
+
"dhall",
|
|
703
|
+
"diff",
|
|
704
|
+
"django",
|
|
705
|
+
"dns-zone-file",
|
|
706
|
+
"docker",
|
|
707
|
+
"dot",
|
|
708
|
+
"ebnf",
|
|
709
|
+
"editorconfig",
|
|
710
|
+
"eiffel",
|
|
711
|
+
"ejs",
|
|
712
|
+
"elixir",
|
|
713
|
+
"elm",
|
|
714
|
+
"erb",
|
|
715
|
+
"erlang",
|
|
716
|
+
"etlua",
|
|
717
|
+
"excel-formula",
|
|
718
|
+
"factor",
|
|
719
|
+
"false",
|
|
720
|
+
"firestore-security-rules",
|
|
721
|
+
"flow",
|
|
722
|
+
"fortran",
|
|
723
|
+
"fsharp",
|
|
724
|
+
"ftl",
|
|
725
|
+
"gap",
|
|
726
|
+
"gcode",
|
|
727
|
+
"gdscript",
|
|
728
|
+
"gedcom",
|
|
729
|
+
"gherkin",
|
|
730
|
+
"git",
|
|
731
|
+
"glsl",
|
|
732
|
+
"gml",
|
|
733
|
+
"gn",
|
|
734
|
+
"go",
|
|
735
|
+
"go-module",
|
|
736
|
+
"graphql",
|
|
737
|
+
"groovy",
|
|
738
|
+
"haml",
|
|
739
|
+
"handlebars",
|
|
740
|
+
"haskell",
|
|
741
|
+
"haxe",
|
|
742
|
+
"hcl",
|
|
743
|
+
"hlsl",
|
|
744
|
+
"hoon",
|
|
745
|
+
"hpkp",
|
|
746
|
+
"hsts",
|
|
747
|
+
"http",
|
|
748
|
+
"ichigojam",
|
|
749
|
+
"icon",
|
|
750
|
+
"icu-message-format",
|
|
751
|
+
"idris",
|
|
752
|
+
"iecst",
|
|
753
|
+
"ignore",
|
|
754
|
+
"index",
|
|
755
|
+
"inform7",
|
|
756
|
+
"ini",
|
|
757
|
+
"io",
|
|
758
|
+
"j",
|
|
759
|
+
"java",
|
|
760
|
+
"javadoc",
|
|
761
|
+
"javadoclike",
|
|
762
|
+
"javascript",
|
|
763
|
+
"javastacktrace",
|
|
764
|
+
"jexl",
|
|
765
|
+
"jolie",
|
|
766
|
+
"jq",
|
|
767
|
+
"js-extras",
|
|
768
|
+
"js-templates",
|
|
769
|
+
"jsdoc",
|
|
770
|
+
"json",
|
|
771
|
+
"json5",
|
|
772
|
+
"jsonp",
|
|
773
|
+
"jsstacktrace",
|
|
774
|
+
"jsx",
|
|
775
|
+
"julia",
|
|
776
|
+
"keepalived",
|
|
777
|
+
"keyman",
|
|
778
|
+
"kotlin",
|
|
779
|
+
"kumir",
|
|
780
|
+
"kusto",
|
|
781
|
+
"latex",
|
|
782
|
+
"latte",
|
|
783
|
+
"less",
|
|
784
|
+
"lilypond",
|
|
785
|
+
"liquid",
|
|
786
|
+
"lisp",
|
|
787
|
+
"livescript",
|
|
788
|
+
"llvm",
|
|
789
|
+
"log",
|
|
790
|
+
"lolcode",
|
|
791
|
+
"lua",
|
|
792
|
+
"magma",
|
|
793
|
+
"makefile",
|
|
794
|
+
"markdown",
|
|
795
|
+
"markup",
|
|
796
|
+
"markup-templating",
|
|
797
|
+
"matlab",
|
|
798
|
+
"maxscript",
|
|
799
|
+
"mel",
|
|
800
|
+
"mermaid",
|
|
801
|
+
"mizar",
|
|
802
|
+
"mongodb",
|
|
803
|
+
"monkey",
|
|
804
|
+
"moonscript",
|
|
805
|
+
"n1ql",
|
|
806
|
+
"n4js",
|
|
807
|
+
"nand2tetris-hdl",
|
|
808
|
+
"naniscript",
|
|
809
|
+
"nasm",
|
|
810
|
+
"neon",
|
|
811
|
+
"nevod",
|
|
812
|
+
"nginx",
|
|
813
|
+
"nim",
|
|
814
|
+
"nix",
|
|
815
|
+
"nsis",
|
|
816
|
+
"objectivec",
|
|
817
|
+
"ocaml",
|
|
818
|
+
"opencl",
|
|
819
|
+
"openqasm",
|
|
820
|
+
"oz",
|
|
821
|
+
"parigp",
|
|
822
|
+
"parser",
|
|
823
|
+
"pascal",
|
|
824
|
+
"pascaligo",
|
|
825
|
+
"pcaxis",
|
|
826
|
+
"peoplecode",
|
|
827
|
+
"perl",
|
|
828
|
+
"php",
|
|
829
|
+
"php-extras",
|
|
830
|
+
"phpdoc",
|
|
831
|
+
"plsql",
|
|
832
|
+
"powerquery",
|
|
833
|
+
"powershell",
|
|
834
|
+
"processing",
|
|
835
|
+
"prolog",
|
|
836
|
+
"promql",
|
|
837
|
+
"properties",
|
|
838
|
+
"protobuf",
|
|
839
|
+
"psl",
|
|
840
|
+
"pug",
|
|
841
|
+
"puppet",
|
|
842
|
+
"pure",
|
|
843
|
+
"purebasic",
|
|
844
|
+
"purescript",
|
|
845
|
+
"python",
|
|
846
|
+
"q",
|
|
847
|
+
"qml",
|
|
848
|
+
"qore",
|
|
849
|
+
"qsharp",
|
|
850
|
+
"r",
|
|
851
|
+
"racket",
|
|
852
|
+
"reason",
|
|
853
|
+
"regex",
|
|
854
|
+
"rego",
|
|
855
|
+
"renpy",
|
|
856
|
+
"rest",
|
|
857
|
+
"rip",
|
|
858
|
+
"roboconf",
|
|
859
|
+
"robotframework",
|
|
860
|
+
"ruby",
|
|
861
|
+
"rust",
|
|
862
|
+
"sas",
|
|
863
|
+
"sass",
|
|
864
|
+
"scala",
|
|
865
|
+
"scheme",
|
|
866
|
+
"scss",
|
|
867
|
+
"shell-session",
|
|
868
|
+
"smali",
|
|
869
|
+
"smalltalk",
|
|
870
|
+
"smarty",
|
|
871
|
+
"sml",
|
|
872
|
+
"solidity",
|
|
873
|
+
"solution-file",
|
|
874
|
+
"soy",
|
|
875
|
+
"sparql",
|
|
876
|
+
"splunk-spl",
|
|
877
|
+
"sqf",
|
|
878
|
+
"sql",
|
|
879
|
+
"squirrel",
|
|
880
|
+
"stan",
|
|
881
|
+
"stylus",
|
|
882
|
+
"swift",
|
|
883
|
+
"systemd",
|
|
884
|
+
"t4-cs",
|
|
885
|
+
"t4-templating",
|
|
886
|
+
"t4-vb",
|
|
887
|
+
"tap",
|
|
888
|
+
"tcl",
|
|
889
|
+
"textile",
|
|
890
|
+
"toml",
|
|
891
|
+
"tremor",
|
|
892
|
+
"tsx",
|
|
893
|
+
"tt2",
|
|
894
|
+
"turtle",
|
|
895
|
+
"twig",
|
|
896
|
+
"typescript",
|
|
897
|
+
"typoscript",
|
|
898
|
+
"unrealscript",
|
|
899
|
+
"uorazor",
|
|
900
|
+
"uri",
|
|
901
|
+
"v",
|
|
902
|
+
"vala",
|
|
903
|
+
"vbnet",
|
|
904
|
+
"velocity",
|
|
905
|
+
"verilog",
|
|
906
|
+
"vhdl",
|
|
907
|
+
"vim",
|
|
908
|
+
"visual-basic",
|
|
909
|
+
"warpscript",
|
|
910
|
+
"wasm",
|
|
911
|
+
"web-idl",
|
|
912
|
+
"wiki",
|
|
913
|
+
"wolfram",
|
|
914
|
+
"wren",
|
|
915
|
+
"xeora",
|
|
916
|
+
"xml-doc",
|
|
917
|
+
"xojo",
|
|
918
|
+
"xquery",
|
|
919
|
+
"yaml",
|
|
920
|
+
"yang",
|
|
921
|
+
"zig",
|
|
922
|
+
]
|
|
923
|
+
]
|
|
924
|
+
| None = None,
|
|
925
|
+
code: Var[str] | str | None = None,
|
|
926
|
+
show_line_numbers: Var[bool] | bool | None = None,
|
|
927
|
+
starting_line_number: Var[int] | int | None = None,
|
|
928
|
+
wrap_long_lines: Var[bool] | bool | None = None,
|
|
929
|
+
custom_style: dict[str, Color | Var | str] | None = None,
|
|
930
|
+
code_tag_props: Var[dict[str, dict[str, str] | str]]
|
|
931
|
+
| dict[str, dict[str, str] | str]
|
|
932
|
+
| None = None,
|
|
933
|
+
can_copy: bool | None = None,
|
|
934
|
+
copy_button: Component | bool | None = None,
|
|
935
|
+
style: Sequence[Mapping[str, Any]]
|
|
936
|
+
| Mapping[str, Any]
|
|
937
|
+
| Var[Mapping[str, Any]]
|
|
938
|
+
| Breakpoints
|
|
939
|
+
| None = None,
|
|
940
|
+
key: Any | None = None,
|
|
941
|
+
id: Any | None = None,
|
|
942
|
+
ref: Var | None = None,
|
|
943
|
+
class_name: Any | None = None,
|
|
944
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
945
|
+
on_blur: EventType[()] | None = None,
|
|
946
|
+
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
947
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
948
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
949
|
+
on_focus: EventType[()] | None = None,
|
|
950
|
+
on_mount: EventType[()] | None = None,
|
|
951
|
+
on_mouse_down: EventType[()] | None = None,
|
|
952
|
+
on_mouse_enter: EventType[()] | None = None,
|
|
953
|
+
on_mouse_leave: EventType[()] | None = None,
|
|
954
|
+
on_mouse_move: EventType[()] | None = None,
|
|
955
|
+
on_mouse_out: EventType[()] | None = None,
|
|
956
|
+
on_mouse_over: EventType[()] | None = None,
|
|
957
|
+
on_mouse_up: EventType[()] | None = None,
|
|
958
|
+
on_scroll: EventType[()] | None = None,
|
|
959
|
+
on_scroll_end: EventType[()] | None = None,
|
|
960
|
+
on_unmount: EventType[()] | None = None,
|
|
961
|
+
**props,
|
|
962
|
+
) -> CodeBlock:
|
|
963
|
+
"""Create a text component.
|
|
964
|
+
|
|
965
|
+
Args:
|
|
966
|
+
*children: The children of the component.
|
|
967
|
+
theme: The theme to use ("light" or "dark").
|
|
968
|
+
language: The language to use.
|
|
969
|
+
code: The code to display.
|
|
970
|
+
show_line_numbers: If this is enabled line numbers will be shown next to the code block.
|
|
971
|
+
starting_line_number: The starting line number to use.
|
|
972
|
+
wrap_long_lines: Whether to wrap long lines.
|
|
973
|
+
custom_style: A custom style for the code block.
|
|
974
|
+
code_tag_props: Props passed down to the code tag.
|
|
975
|
+
can_copy: Whether a copy button should appear.
|
|
976
|
+
copy_button: A custom copy button to override the default one.
|
|
977
|
+
style: The style of the component.
|
|
978
|
+
key: A unique key for the component.
|
|
979
|
+
id: The id for the component.
|
|
980
|
+
ref: The Var to pass as the ref to the component.
|
|
981
|
+
class_name: The class name for the component.
|
|
982
|
+
custom_attrs: Attributes passed directly to the component.
|
|
983
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
984
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
985
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
986
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
987
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
988
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
989
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
990
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
991
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
992
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
993
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
994
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
995
|
+
on_scroll: Fired when the user scrolls the element.
|
|
996
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
997
|
+
on_mount: Fired when the component is mounted to the page.
|
|
998
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
999
|
+
**props: The props to pass to the component.
|
|
1000
|
+
|
|
1001
|
+
Returns:
|
|
1002
|
+
The text component.
|
|
1003
|
+
"""
|
|
1004
|
+
|
|
1005
|
+
def add_style(self): ...
|
|
1006
|
+
|
|
1007
|
+
class CodeblockNamespace(ComponentNamespace):
|
|
1008
|
+
themes = Theme
|
|
1009
|
+
|
|
1010
|
+
@staticmethod
|
|
1011
|
+
def __call__(
|
|
1012
|
+
*children,
|
|
1013
|
+
theme: Theme | Var[Theme | str] | str | None = None,
|
|
1014
|
+
language: Literal[
|
|
1015
|
+
"abap",
|
|
1016
|
+
"abnf",
|
|
1017
|
+
"actionscript",
|
|
1018
|
+
"ada",
|
|
1019
|
+
"agda",
|
|
1020
|
+
"al",
|
|
1021
|
+
"antlr4",
|
|
1022
|
+
"apacheconf",
|
|
1023
|
+
"apex",
|
|
1024
|
+
"apl",
|
|
1025
|
+
"applescript",
|
|
1026
|
+
"aql",
|
|
1027
|
+
"arduino",
|
|
1028
|
+
"arff",
|
|
1029
|
+
"asciidoc",
|
|
1030
|
+
"asm6502",
|
|
1031
|
+
"asmatmel",
|
|
1032
|
+
"aspnet",
|
|
1033
|
+
"autohotkey",
|
|
1034
|
+
"autoit",
|
|
1035
|
+
"avisynth",
|
|
1036
|
+
"avro-idl",
|
|
1037
|
+
"bash",
|
|
1038
|
+
"basic",
|
|
1039
|
+
"batch",
|
|
1040
|
+
"bbcode",
|
|
1041
|
+
"bicep",
|
|
1042
|
+
"birb",
|
|
1043
|
+
"bison",
|
|
1044
|
+
"bnf",
|
|
1045
|
+
"brainfuck",
|
|
1046
|
+
"brightscript",
|
|
1047
|
+
"bro",
|
|
1048
|
+
"bsl",
|
|
1049
|
+
"c",
|
|
1050
|
+
"cfscript",
|
|
1051
|
+
"chaiscript",
|
|
1052
|
+
"cil",
|
|
1053
|
+
"clike",
|
|
1054
|
+
"clojure",
|
|
1055
|
+
"cmake",
|
|
1056
|
+
"cobol",
|
|
1057
|
+
"coffeescript",
|
|
1058
|
+
"concurnas",
|
|
1059
|
+
"coq",
|
|
1060
|
+
"core",
|
|
1061
|
+
"cpp",
|
|
1062
|
+
"crystal",
|
|
1063
|
+
"csharp",
|
|
1064
|
+
"cshtml",
|
|
1065
|
+
"csp",
|
|
1066
|
+
"css",
|
|
1067
|
+
"css-extras",
|
|
1068
|
+
"csv",
|
|
1069
|
+
"cypher",
|
|
1070
|
+
"d",
|
|
1071
|
+
"dart",
|
|
1072
|
+
"dataweave",
|
|
1073
|
+
"dax",
|
|
1074
|
+
"dhall",
|
|
1075
|
+
"diff",
|
|
1076
|
+
"django",
|
|
1077
|
+
"dns-zone-file",
|
|
1078
|
+
"docker",
|
|
1079
|
+
"dot",
|
|
1080
|
+
"ebnf",
|
|
1081
|
+
"editorconfig",
|
|
1082
|
+
"eiffel",
|
|
1083
|
+
"ejs",
|
|
1084
|
+
"elixir",
|
|
1085
|
+
"elm",
|
|
1086
|
+
"erb",
|
|
1087
|
+
"erlang",
|
|
1088
|
+
"etlua",
|
|
1089
|
+
"excel-formula",
|
|
1090
|
+
"factor",
|
|
1091
|
+
"false",
|
|
1092
|
+
"firestore-security-rules",
|
|
1093
|
+
"flow",
|
|
1094
|
+
"fortran",
|
|
1095
|
+
"fsharp",
|
|
1096
|
+
"ftl",
|
|
1097
|
+
"gap",
|
|
1098
|
+
"gcode",
|
|
1099
|
+
"gdscript",
|
|
1100
|
+
"gedcom",
|
|
1101
|
+
"gherkin",
|
|
1102
|
+
"git",
|
|
1103
|
+
"glsl",
|
|
1104
|
+
"gml",
|
|
1105
|
+
"gn",
|
|
1106
|
+
"go",
|
|
1107
|
+
"go-module",
|
|
1108
|
+
"graphql",
|
|
1109
|
+
"groovy",
|
|
1110
|
+
"haml",
|
|
1111
|
+
"handlebars",
|
|
1112
|
+
"haskell",
|
|
1113
|
+
"haxe",
|
|
1114
|
+
"hcl",
|
|
1115
|
+
"hlsl",
|
|
1116
|
+
"hoon",
|
|
1117
|
+
"hpkp",
|
|
1118
|
+
"hsts",
|
|
1119
|
+
"http",
|
|
1120
|
+
"ichigojam",
|
|
1121
|
+
"icon",
|
|
1122
|
+
"icu-message-format",
|
|
1123
|
+
"idris",
|
|
1124
|
+
"iecst",
|
|
1125
|
+
"ignore",
|
|
1126
|
+
"index",
|
|
1127
|
+
"inform7",
|
|
1128
|
+
"ini",
|
|
1129
|
+
"io",
|
|
1130
|
+
"j",
|
|
1131
|
+
"java",
|
|
1132
|
+
"javadoc",
|
|
1133
|
+
"javadoclike",
|
|
1134
|
+
"javascript",
|
|
1135
|
+
"javastacktrace",
|
|
1136
|
+
"jexl",
|
|
1137
|
+
"jolie",
|
|
1138
|
+
"jq",
|
|
1139
|
+
"js-extras",
|
|
1140
|
+
"js-templates",
|
|
1141
|
+
"jsdoc",
|
|
1142
|
+
"json",
|
|
1143
|
+
"json5",
|
|
1144
|
+
"jsonp",
|
|
1145
|
+
"jsstacktrace",
|
|
1146
|
+
"jsx",
|
|
1147
|
+
"julia",
|
|
1148
|
+
"keepalived",
|
|
1149
|
+
"keyman",
|
|
1150
|
+
"kotlin",
|
|
1151
|
+
"kumir",
|
|
1152
|
+
"kusto",
|
|
1153
|
+
"latex",
|
|
1154
|
+
"latte",
|
|
1155
|
+
"less",
|
|
1156
|
+
"lilypond",
|
|
1157
|
+
"liquid",
|
|
1158
|
+
"lisp",
|
|
1159
|
+
"livescript",
|
|
1160
|
+
"llvm",
|
|
1161
|
+
"log",
|
|
1162
|
+
"lolcode",
|
|
1163
|
+
"lua",
|
|
1164
|
+
"magma",
|
|
1165
|
+
"makefile",
|
|
1166
|
+
"markdown",
|
|
1167
|
+
"markup",
|
|
1168
|
+
"markup-templating",
|
|
1169
|
+
"matlab",
|
|
1170
|
+
"maxscript",
|
|
1171
|
+
"mel",
|
|
1172
|
+
"mermaid",
|
|
1173
|
+
"mizar",
|
|
1174
|
+
"mongodb",
|
|
1175
|
+
"monkey",
|
|
1176
|
+
"moonscript",
|
|
1177
|
+
"n1ql",
|
|
1178
|
+
"n4js",
|
|
1179
|
+
"nand2tetris-hdl",
|
|
1180
|
+
"naniscript",
|
|
1181
|
+
"nasm",
|
|
1182
|
+
"neon",
|
|
1183
|
+
"nevod",
|
|
1184
|
+
"nginx",
|
|
1185
|
+
"nim",
|
|
1186
|
+
"nix",
|
|
1187
|
+
"nsis",
|
|
1188
|
+
"objectivec",
|
|
1189
|
+
"ocaml",
|
|
1190
|
+
"opencl",
|
|
1191
|
+
"openqasm",
|
|
1192
|
+
"oz",
|
|
1193
|
+
"parigp",
|
|
1194
|
+
"parser",
|
|
1195
|
+
"pascal",
|
|
1196
|
+
"pascaligo",
|
|
1197
|
+
"pcaxis",
|
|
1198
|
+
"peoplecode",
|
|
1199
|
+
"perl",
|
|
1200
|
+
"php",
|
|
1201
|
+
"php-extras",
|
|
1202
|
+
"phpdoc",
|
|
1203
|
+
"plsql",
|
|
1204
|
+
"powerquery",
|
|
1205
|
+
"powershell",
|
|
1206
|
+
"processing",
|
|
1207
|
+
"prolog",
|
|
1208
|
+
"promql",
|
|
1209
|
+
"properties",
|
|
1210
|
+
"protobuf",
|
|
1211
|
+
"psl",
|
|
1212
|
+
"pug",
|
|
1213
|
+
"puppet",
|
|
1214
|
+
"pure",
|
|
1215
|
+
"purebasic",
|
|
1216
|
+
"purescript",
|
|
1217
|
+
"python",
|
|
1218
|
+
"q",
|
|
1219
|
+
"qml",
|
|
1220
|
+
"qore",
|
|
1221
|
+
"qsharp",
|
|
1222
|
+
"r",
|
|
1223
|
+
"racket",
|
|
1224
|
+
"reason",
|
|
1225
|
+
"regex",
|
|
1226
|
+
"rego",
|
|
1227
|
+
"renpy",
|
|
1228
|
+
"rest",
|
|
1229
|
+
"rip",
|
|
1230
|
+
"roboconf",
|
|
1231
|
+
"robotframework",
|
|
1232
|
+
"ruby",
|
|
1233
|
+
"rust",
|
|
1234
|
+
"sas",
|
|
1235
|
+
"sass",
|
|
1236
|
+
"scala",
|
|
1237
|
+
"scheme",
|
|
1238
|
+
"scss",
|
|
1239
|
+
"shell-session",
|
|
1240
|
+
"smali",
|
|
1241
|
+
"smalltalk",
|
|
1242
|
+
"smarty",
|
|
1243
|
+
"sml",
|
|
1244
|
+
"solidity",
|
|
1245
|
+
"solution-file",
|
|
1246
|
+
"soy",
|
|
1247
|
+
"sparql",
|
|
1248
|
+
"splunk-spl",
|
|
1249
|
+
"sqf",
|
|
1250
|
+
"sql",
|
|
1251
|
+
"squirrel",
|
|
1252
|
+
"stan",
|
|
1253
|
+
"stylus",
|
|
1254
|
+
"swift",
|
|
1255
|
+
"systemd",
|
|
1256
|
+
"t4-cs",
|
|
1257
|
+
"t4-templating",
|
|
1258
|
+
"t4-vb",
|
|
1259
|
+
"tap",
|
|
1260
|
+
"tcl",
|
|
1261
|
+
"textile",
|
|
1262
|
+
"toml",
|
|
1263
|
+
"tremor",
|
|
1264
|
+
"tsx",
|
|
1265
|
+
"tt2",
|
|
1266
|
+
"turtle",
|
|
1267
|
+
"twig",
|
|
1268
|
+
"typescript",
|
|
1269
|
+
"typoscript",
|
|
1270
|
+
"unrealscript",
|
|
1271
|
+
"uorazor",
|
|
1272
|
+
"uri",
|
|
1273
|
+
"v",
|
|
1274
|
+
"vala",
|
|
1275
|
+
"vbnet",
|
|
1276
|
+
"velocity",
|
|
1277
|
+
"verilog",
|
|
1278
|
+
"vhdl",
|
|
1279
|
+
"vim",
|
|
1280
|
+
"visual-basic",
|
|
1281
|
+
"warpscript",
|
|
1282
|
+
"wasm",
|
|
1283
|
+
"web-idl",
|
|
1284
|
+
"wiki",
|
|
1285
|
+
"wolfram",
|
|
1286
|
+
"wren",
|
|
1287
|
+
"xeora",
|
|
1288
|
+
"xml-doc",
|
|
1289
|
+
"xojo",
|
|
1290
|
+
"xquery",
|
|
1291
|
+
"yaml",
|
|
1292
|
+
"yang",
|
|
1293
|
+
"zig",
|
|
1294
|
+
]
|
|
1295
|
+
| Var[
|
|
1296
|
+
Literal[
|
|
1297
|
+
"abap",
|
|
1298
|
+
"abnf",
|
|
1299
|
+
"actionscript",
|
|
1300
|
+
"ada",
|
|
1301
|
+
"agda",
|
|
1302
|
+
"al",
|
|
1303
|
+
"antlr4",
|
|
1304
|
+
"apacheconf",
|
|
1305
|
+
"apex",
|
|
1306
|
+
"apl",
|
|
1307
|
+
"applescript",
|
|
1308
|
+
"aql",
|
|
1309
|
+
"arduino",
|
|
1310
|
+
"arff",
|
|
1311
|
+
"asciidoc",
|
|
1312
|
+
"asm6502",
|
|
1313
|
+
"asmatmel",
|
|
1314
|
+
"aspnet",
|
|
1315
|
+
"autohotkey",
|
|
1316
|
+
"autoit",
|
|
1317
|
+
"avisynth",
|
|
1318
|
+
"avro-idl",
|
|
1319
|
+
"bash",
|
|
1320
|
+
"basic",
|
|
1321
|
+
"batch",
|
|
1322
|
+
"bbcode",
|
|
1323
|
+
"bicep",
|
|
1324
|
+
"birb",
|
|
1325
|
+
"bison",
|
|
1326
|
+
"bnf",
|
|
1327
|
+
"brainfuck",
|
|
1328
|
+
"brightscript",
|
|
1329
|
+
"bro",
|
|
1330
|
+
"bsl",
|
|
1331
|
+
"c",
|
|
1332
|
+
"cfscript",
|
|
1333
|
+
"chaiscript",
|
|
1334
|
+
"cil",
|
|
1335
|
+
"clike",
|
|
1336
|
+
"clojure",
|
|
1337
|
+
"cmake",
|
|
1338
|
+
"cobol",
|
|
1339
|
+
"coffeescript",
|
|
1340
|
+
"concurnas",
|
|
1341
|
+
"coq",
|
|
1342
|
+
"core",
|
|
1343
|
+
"cpp",
|
|
1344
|
+
"crystal",
|
|
1345
|
+
"csharp",
|
|
1346
|
+
"cshtml",
|
|
1347
|
+
"csp",
|
|
1348
|
+
"css",
|
|
1349
|
+
"css-extras",
|
|
1350
|
+
"csv",
|
|
1351
|
+
"cypher",
|
|
1352
|
+
"d",
|
|
1353
|
+
"dart",
|
|
1354
|
+
"dataweave",
|
|
1355
|
+
"dax",
|
|
1356
|
+
"dhall",
|
|
1357
|
+
"diff",
|
|
1358
|
+
"django",
|
|
1359
|
+
"dns-zone-file",
|
|
1360
|
+
"docker",
|
|
1361
|
+
"dot",
|
|
1362
|
+
"ebnf",
|
|
1363
|
+
"editorconfig",
|
|
1364
|
+
"eiffel",
|
|
1365
|
+
"ejs",
|
|
1366
|
+
"elixir",
|
|
1367
|
+
"elm",
|
|
1368
|
+
"erb",
|
|
1369
|
+
"erlang",
|
|
1370
|
+
"etlua",
|
|
1371
|
+
"excel-formula",
|
|
1372
|
+
"factor",
|
|
1373
|
+
"false",
|
|
1374
|
+
"firestore-security-rules",
|
|
1375
|
+
"flow",
|
|
1376
|
+
"fortran",
|
|
1377
|
+
"fsharp",
|
|
1378
|
+
"ftl",
|
|
1379
|
+
"gap",
|
|
1380
|
+
"gcode",
|
|
1381
|
+
"gdscript",
|
|
1382
|
+
"gedcom",
|
|
1383
|
+
"gherkin",
|
|
1384
|
+
"git",
|
|
1385
|
+
"glsl",
|
|
1386
|
+
"gml",
|
|
1387
|
+
"gn",
|
|
1388
|
+
"go",
|
|
1389
|
+
"go-module",
|
|
1390
|
+
"graphql",
|
|
1391
|
+
"groovy",
|
|
1392
|
+
"haml",
|
|
1393
|
+
"handlebars",
|
|
1394
|
+
"haskell",
|
|
1395
|
+
"haxe",
|
|
1396
|
+
"hcl",
|
|
1397
|
+
"hlsl",
|
|
1398
|
+
"hoon",
|
|
1399
|
+
"hpkp",
|
|
1400
|
+
"hsts",
|
|
1401
|
+
"http",
|
|
1402
|
+
"ichigojam",
|
|
1403
|
+
"icon",
|
|
1404
|
+
"icu-message-format",
|
|
1405
|
+
"idris",
|
|
1406
|
+
"iecst",
|
|
1407
|
+
"ignore",
|
|
1408
|
+
"index",
|
|
1409
|
+
"inform7",
|
|
1410
|
+
"ini",
|
|
1411
|
+
"io",
|
|
1412
|
+
"j",
|
|
1413
|
+
"java",
|
|
1414
|
+
"javadoc",
|
|
1415
|
+
"javadoclike",
|
|
1416
|
+
"javascript",
|
|
1417
|
+
"javastacktrace",
|
|
1418
|
+
"jexl",
|
|
1419
|
+
"jolie",
|
|
1420
|
+
"jq",
|
|
1421
|
+
"js-extras",
|
|
1422
|
+
"js-templates",
|
|
1423
|
+
"jsdoc",
|
|
1424
|
+
"json",
|
|
1425
|
+
"json5",
|
|
1426
|
+
"jsonp",
|
|
1427
|
+
"jsstacktrace",
|
|
1428
|
+
"jsx",
|
|
1429
|
+
"julia",
|
|
1430
|
+
"keepalived",
|
|
1431
|
+
"keyman",
|
|
1432
|
+
"kotlin",
|
|
1433
|
+
"kumir",
|
|
1434
|
+
"kusto",
|
|
1435
|
+
"latex",
|
|
1436
|
+
"latte",
|
|
1437
|
+
"less",
|
|
1438
|
+
"lilypond",
|
|
1439
|
+
"liquid",
|
|
1440
|
+
"lisp",
|
|
1441
|
+
"livescript",
|
|
1442
|
+
"llvm",
|
|
1443
|
+
"log",
|
|
1444
|
+
"lolcode",
|
|
1445
|
+
"lua",
|
|
1446
|
+
"magma",
|
|
1447
|
+
"makefile",
|
|
1448
|
+
"markdown",
|
|
1449
|
+
"markup",
|
|
1450
|
+
"markup-templating",
|
|
1451
|
+
"matlab",
|
|
1452
|
+
"maxscript",
|
|
1453
|
+
"mel",
|
|
1454
|
+
"mermaid",
|
|
1455
|
+
"mizar",
|
|
1456
|
+
"mongodb",
|
|
1457
|
+
"monkey",
|
|
1458
|
+
"moonscript",
|
|
1459
|
+
"n1ql",
|
|
1460
|
+
"n4js",
|
|
1461
|
+
"nand2tetris-hdl",
|
|
1462
|
+
"naniscript",
|
|
1463
|
+
"nasm",
|
|
1464
|
+
"neon",
|
|
1465
|
+
"nevod",
|
|
1466
|
+
"nginx",
|
|
1467
|
+
"nim",
|
|
1468
|
+
"nix",
|
|
1469
|
+
"nsis",
|
|
1470
|
+
"objectivec",
|
|
1471
|
+
"ocaml",
|
|
1472
|
+
"opencl",
|
|
1473
|
+
"openqasm",
|
|
1474
|
+
"oz",
|
|
1475
|
+
"parigp",
|
|
1476
|
+
"parser",
|
|
1477
|
+
"pascal",
|
|
1478
|
+
"pascaligo",
|
|
1479
|
+
"pcaxis",
|
|
1480
|
+
"peoplecode",
|
|
1481
|
+
"perl",
|
|
1482
|
+
"php",
|
|
1483
|
+
"php-extras",
|
|
1484
|
+
"phpdoc",
|
|
1485
|
+
"plsql",
|
|
1486
|
+
"powerquery",
|
|
1487
|
+
"powershell",
|
|
1488
|
+
"processing",
|
|
1489
|
+
"prolog",
|
|
1490
|
+
"promql",
|
|
1491
|
+
"properties",
|
|
1492
|
+
"protobuf",
|
|
1493
|
+
"psl",
|
|
1494
|
+
"pug",
|
|
1495
|
+
"puppet",
|
|
1496
|
+
"pure",
|
|
1497
|
+
"purebasic",
|
|
1498
|
+
"purescript",
|
|
1499
|
+
"python",
|
|
1500
|
+
"q",
|
|
1501
|
+
"qml",
|
|
1502
|
+
"qore",
|
|
1503
|
+
"qsharp",
|
|
1504
|
+
"r",
|
|
1505
|
+
"racket",
|
|
1506
|
+
"reason",
|
|
1507
|
+
"regex",
|
|
1508
|
+
"rego",
|
|
1509
|
+
"renpy",
|
|
1510
|
+
"rest",
|
|
1511
|
+
"rip",
|
|
1512
|
+
"roboconf",
|
|
1513
|
+
"robotframework",
|
|
1514
|
+
"ruby",
|
|
1515
|
+
"rust",
|
|
1516
|
+
"sas",
|
|
1517
|
+
"sass",
|
|
1518
|
+
"scala",
|
|
1519
|
+
"scheme",
|
|
1520
|
+
"scss",
|
|
1521
|
+
"shell-session",
|
|
1522
|
+
"smali",
|
|
1523
|
+
"smalltalk",
|
|
1524
|
+
"smarty",
|
|
1525
|
+
"sml",
|
|
1526
|
+
"solidity",
|
|
1527
|
+
"solution-file",
|
|
1528
|
+
"soy",
|
|
1529
|
+
"sparql",
|
|
1530
|
+
"splunk-spl",
|
|
1531
|
+
"sqf",
|
|
1532
|
+
"sql",
|
|
1533
|
+
"squirrel",
|
|
1534
|
+
"stan",
|
|
1535
|
+
"stylus",
|
|
1536
|
+
"swift",
|
|
1537
|
+
"systemd",
|
|
1538
|
+
"t4-cs",
|
|
1539
|
+
"t4-templating",
|
|
1540
|
+
"t4-vb",
|
|
1541
|
+
"tap",
|
|
1542
|
+
"tcl",
|
|
1543
|
+
"textile",
|
|
1544
|
+
"toml",
|
|
1545
|
+
"tremor",
|
|
1546
|
+
"tsx",
|
|
1547
|
+
"tt2",
|
|
1548
|
+
"turtle",
|
|
1549
|
+
"twig",
|
|
1550
|
+
"typescript",
|
|
1551
|
+
"typoscript",
|
|
1552
|
+
"unrealscript",
|
|
1553
|
+
"uorazor",
|
|
1554
|
+
"uri",
|
|
1555
|
+
"v",
|
|
1556
|
+
"vala",
|
|
1557
|
+
"vbnet",
|
|
1558
|
+
"velocity",
|
|
1559
|
+
"verilog",
|
|
1560
|
+
"vhdl",
|
|
1561
|
+
"vim",
|
|
1562
|
+
"visual-basic",
|
|
1563
|
+
"warpscript",
|
|
1564
|
+
"wasm",
|
|
1565
|
+
"web-idl",
|
|
1566
|
+
"wiki",
|
|
1567
|
+
"wolfram",
|
|
1568
|
+
"wren",
|
|
1569
|
+
"xeora",
|
|
1570
|
+
"xml-doc",
|
|
1571
|
+
"xojo",
|
|
1572
|
+
"xquery",
|
|
1573
|
+
"yaml",
|
|
1574
|
+
"yang",
|
|
1575
|
+
"zig",
|
|
1576
|
+
]
|
|
1577
|
+
]
|
|
1578
|
+
| None = None,
|
|
1579
|
+
code: Var[str] | str | None = None,
|
|
1580
|
+
show_line_numbers: Var[bool] | bool | None = None,
|
|
1581
|
+
starting_line_number: Var[int] | int | None = None,
|
|
1582
|
+
wrap_long_lines: Var[bool] | bool | None = None,
|
|
1583
|
+
custom_style: dict[str, Color | Var | str] | None = None,
|
|
1584
|
+
code_tag_props: Var[dict[str, dict[str, str] | str]]
|
|
1585
|
+
| dict[str, dict[str, str] | str]
|
|
1586
|
+
| None = None,
|
|
1587
|
+
can_copy: bool | None = None,
|
|
1588
|
+
copy_button: Component | bool | None = None,
|
|
1589
|
+
style: Sequence[Mapping[str, Any]]
|
|
1590
|
+
| Mapping[str, Any]
|
|
1591
|
+
| Var[Mapping[str, Any]]
|
|
1592
|
+
| Breakpoints
|
|
1593
|
+
| None = None,
|
|
1594
|
+
key: Any | None = None,
|
|
1595
|
+
id: Any | None = None,
|
|
1596
|
+
ref: Var | None = None,
|
|
1597
|
+
class_name: Any | None = None,
|
|
1598
|
+
custom_attrs: dict[str, Any | Var] | None = None,
|
|
1599
|
+
on_blur: EventType[()] | None = None,
|
|
1600
|
+
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1601
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1602
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1603
|
+
on_focus: EventType[()] | None = None,
|
|
1604
|
+
on_mount: EventType[()] | None = None,
|
|
1605
|
+
on_mouse_down: EventType[()] | None = None,
|
|
1606
|
+
on_mouse_enter: EventType[()] | None = None,
|
|
1607
|
+
on_mouse_leave: EventType[()] | None = None,
|
|
1608
|
+
on_mouse_move: EventType[()] | None = None,
|
|
1609
|
+
on_mouse_out: EventType[()] | None = None,
|
|
1610
|
+
on_mouse_over: EventType[()] | None = None,
|
|
1611
|
+
on_mouse_up: EventType[()] | None = None,
|
|
1612
|
+
on_scroll: EventType[()] | None = None,
|
|
1613
|
+
on_scroll_end: EventType[()] | None = None,
|
|
1614
|
+
on_unmount: EventType[()] | None = None,
|
|
1615
|
+
**props,
|
|
1616
|
+
) -> CodeBlock:
|
|
1617
|
+
"""Create a text component.
|
|
1618
|
+
|
|
1619
|
+
Args:
|
|
1620
|
+
*children: The children of the component.
|
|
1621
|
+
theme: The theme to use ("light" or "dark").
|
|
1622
|
+
language: The language to use.
|
|
1623
|
+
code: The code to display.
|
|
1624
|
+
show_line_numbers: If this is enabled line numbers will be shown next to the code block.
|
|
1625
|
+
starting_line_number: The starting line number to use.
|
|
1626
|
+
wrap_long_lines: Whether to wrap long lines.
|
|
1627
|
+
custom_style: A custom style for the code block.
|
|
1628
|
+
code_tag_props: Props passed down to the code tag.
|
|
1629
|
+
can_copy: Whether a copy button should appear.
|
|
1630
|
+
copy_button: A custom copy button to override the default one.
|
|
1631
|
+
style: The style of the component.
|
|
1632
|
+
key: A unique key for the component.
|
|
1633
|
+
id: The id for the component.
|
|
1634
|
+
ref: The Var to pass as the ref to the component.
|
|
1635
|
+
class_name: The class name for the component.
|
|
1636
|
+
custom_attrs: Attributes passed directly to the component.
|
|
1637
|
+
on_focus: Fired when the element (or some element inside of it) receives focus. For example, it is called when the user clicks on a text input.
|
|
1638
|
+
on_blur: Fired when focus has left the element (or left some element inside of it). For example, it is called when the user clicks outside of a focused text input.
|
|
1639
|
+
on_click: Fired when the user clicks on an element. For example, it's called when the user clicks on a button.
|
|
1640
|
+
on_context_menu: Fired when the user right-clicks on an element.
|
|
1641
|
+
on_double_click: Fired when the user double-clicks on an element.
|
|
1642
|
+
on_mouse_down: Fired when the user presses a mouse button on an element.
|
|
1643
|
+
on_mouse_enter: Fired when the mouse pointer enters the element.
|
|
1644
|
+
on_mouse_leave: Fired when the mouse pointer leaves the element.
|
|
1645
|
+
on_mouse_move: Fired when the mouse pointer moves over the element.
|
|
1646
|
+
on_mouse_out: Fired when the mouse pointer moves out of the element.
|
|
1647
|
+
on_mouse_over: Fired when the mouse pointer moves onto the element.
|
|
1648
|
+
on_mouse_up: Fired when the user releases a mouse button on an element.
|
|
1649
|
+
on_scroll: Fired when the user scrolls the element.
|
|
1650
|
+
on_scroll_end: Fired when scrolling ends on the element.
|
|
1651
|
+
on_mount: Fired when the component is mounted to the page.
|
|
1652
|
+
on_unmount: Fired when the component is removed from the page. Only called during navigation, not on page refresh.
|
|
1653
|
+
**props: The props to pass to the component.
|
|
1654
|
+
|
|
1655
|
+
Returns:
|
|
1656
|
+
The text component.
|
|
1657
|
+
"""
|
|
1658
|
+
|
|
1659
|
+
code_block = CodeblockNamespace()
|