pub fn container_html(component: &Container) -> String
Expand description
Renders a Container
component into an HTML string with the specified styles
such as background color, size, border, padding, alignment, and flexbox layout.
§Arguments
component
- A reference to aContainer
component containing the properties such as background color, dimensions, border, padding, and alignment. It may also include nested components that are rendered inside the container.
§Returns
A string representing the HTML <div>
element with the specified properties,
styles, and content (child components).