MCPcopy Create free account
hub / github.com/dot-agent/nextpy / _render

Method _render

nextpy/frontend/components/chakra/datadisplay/code.py:508–519  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

506 self.custom_style.update(style) # type: ignore
507
508 def _render(self):
509 out = super()._render()
510 predicate, qmark, value = self.theme._var_name.partition("?")
511 out.add_props(
512 style=Var.create(
513 format.to_camel_case(f"{predicate}{qmark}{value.replace('`', '')}"),
514 _var_is_local=False,
515 )
516 ).remove_props("theme", "code")
517 if self.code is not None:
518 out.special_props.add(Var.create_safe(f"children={str(self.code)}"))
519 return out
520
521
522class Code(ChakraComponent):

Callers

nothing calls this directly

Calls 5

remove_propsMethod · 0.80
add_propsMethod · 0.80
addMethod · 0.80
create_safeMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected