(self)
| 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 | |
| 522 | class Code(ChakraComponent): |
nothing calls this directly
no test coverage detected