Code
Render inline code with Astryx styling.
Astryx Props
JSON-safe Code props forwarded to Astryx.
Supported Astryx props include:
children(ReactNode; required): Code content.xstyle(StyleXStyles): StyleX styles for layout customization. Must be a stylex.create() value.className(string): CSS class name for the root element. Prefer xstyle for styling.style(CSSProperties): Inline styles. Prefer xstyle for StyleX-optimized styling.data-testid(string): Test selector for automated testing frameworks.
Props typed as React nodes, render functions, event handlers, refs, or StyleX styles are documented for Astryx parity but cannot be serialized directly from Python unless the wrapper adapts them.
See Astryx component docs: https://astryx.atmeta.com/components/Code.
Functions
constructor__init__(code, **props) -> NoneparamcodestrAstryx component option.
parampropsAny= {}Returns
None