Render the component. Returns: The dictionary for template of component.
(self)
| 623 | return {"css": Var.create(format_as_emotion(self.style))} |
| 624 | |
| 625 | def render(self) -> Dict: |
| 626 | """Render the component. |
| 627 | |
| 628 | Returns: |
| 629 | The dictionary for template of component. |
| 630 | """ |
| 631 | tag = self._render() |
| 632 | rendered_dict = dict( |
| 633 | tag.set( |
| 634 | children=[child.render() for child in self.children], |
| 635 | contents=str(tag.contents), |
| 636 | props=tag.format_props(), |
| 637 | ), |
| 638 | autofocus=self.autofocus, |
| 639 | ) |
| 640 | return rendered_dict |
| 641 | |
| 642 | def _validate_component_children(self, children: List[Component]): |
| 643 | """Validate the children components. |
no test coverage detected