Html object as the last expression of a cell to render it in your app.
Usage
Signature
Parameters
A string of HTML.
Attributes
A string of HTML representing this element.
Methods
batch
Convert an HTML object with templated text into a UI element. This method lets you create custom UI elements that are represented by arbitrary HTML.user_info is a UI Element whose output is markdown and whose value is a dict with keys 'name' and 'birthday' (and values equal to the values of their corresponding elements).
Parameters:
**elements: the UI elements to interpolate into the HTML template.
center
Center an item.Html object.
right
Right-justify.Html object.
left
Left-justify.Html object.
callout
Create a callout containing this HTML element. A callout wraps your HTML element in a raised box, emphasizing its importance. You can style the callout for different situations with thekind argument.
kind(Literal[“neutral”, “danger”, “warn”, “success”, “info”]): The kind of callout. Defaults to “neutral”.
Html object.
style
Wrap an object in a styled container.style(Optional[dict[str, Any]]): An optional dict of CSS styles, keyed by property name.**kwargs: CSS styles as keyword arguments.
Html object.