custom_style#
- treescope.rendering_parts.custom_style(child: part_interface.RenderableTreePart, css_style: str) part_interface.RenderableTreePart [source]#
Returns a wrapped child with a custom CSS style.
- Parameters:
child – Child to render.
css_style – A CSS style string.
- Returns:
A wrapped child with a custom CSS style applied. Intended for an inline text component.