Registry / devops / reflex-components-code

reflex-components-code

JSON →
library0.9.2pypypi✓ verified 82d ago

A Reflex library for displaying code blocks with syntax highlighting, line numbers, and copy-to-clipboard functionality. Version 0.9.2, updated infrequently.

pip install reflex-components-code
INSTALL
IMPORT
SIG · REFLEX-COMPONENTS-
R
reflex-components-code
devopspythonv0.9.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Code
import reflex_components_code
from reflex_components_code import Code

Minimal Reflex app that displays a code block using the Code component.

import reflex as rx from reflex_components_code import Code def index() -> rx.Component: return Code( code="print('Hello, World!')", language="python", show_line_numbers=True, theme="dark", ) app = rx.App() app.add_page(index)
Debug
Known issues
gotchaThe 'Code' component's 'code' prop must be a string literal, not a ReactiveVar or expression. Using a local variable that is not a string may cause runtime errors.
fix
Pass code as a plain string: code='your code here'
affects: all
gotchaThe 'theme' prop accepts specific string values (dark, light, etc.) but does not validate them at runtime. An invalid theme string will silently fall back to default.
fix
Use only 'dark' or 'light' as of v0.9.2. Check docs for updated list.
affects: all
deprecatedReflex itself has moved from page-based API to a different routing approach in recent versions. Ensure your Reflex version is compatible with this library's dependencies.
fix
Pin reflex to version 0.4.0 or earlier if using rx.App and add_page. Use the library with caution on newer Reflex versions.
affects: >=0.9.0
Upgrade
Version history
0.9.2latest on PyPI · released May 6, 2026
Audit
Dependencies
reflexrequiredRuntime dependency; library provides code components for Reflex apps.
Agent activity
10 hits · last 30 days
node
8
Bingbot
1
Resources

No resource links recorded.

reflex-components-code — pip install reflex-components-code · libregistry