Initializersliemeobn.elementary 0.3.1Elementary
init(content:)
Creates a new HTML element with the specified content.
Html+Elements.swift:12init(@HTMLBuilder content: () -> Content)
Parameters
- content
The content of the element.
Other members in extension
Typealiases
typealias Tag
The type of the HTML tag this element represents.
Type members
init(HTMLAttribute<Tag>, content: () -> Content
) Creates a new HTML element with the specified attribute and content.
init(HTMLAttribute<Tag>..., content: () -> Content
) Creates a new HTML element with the specified attributes and content.
init(attributes: [HTMLAttribute<Tag>], content: () -> Content
) Creates a new HTML element with the specified attributes and content.