Type Aliassliemeobn.elementary 0.5.0Elementary
Tag
The type of the HTML tag this element represents.
typealias Tag = Tag
The type of the HTML tag this element represents.
typealias Tag = Tag
import Elementary
struct HTMLElement<Tag, Content> where Tag : HTMLTrait.Paired, Content : HTML
An HTML element that can contain content.
init(_ attribute: HTMLAttribute<Tag>, @HTMLBuilder content: () -> Content)
Creates a new HTML element with the specified attribute and content.
init(_ attributes: HTMLAttribute<Tag>..., @HTMLBuilder content: () -> Content)
Creates a new HTML element with the specified attributes and content.
init(attributes: [HTMLAttribute<Tag>], @HTMLBuilder content: () -> Content)
Creates a new HTML element with the specified attributes and content.
init(@HTMLBuilder content: () -> Content)
Creates a new HTML element with the specified content.
static func _render<Renderer>(_ html: consuming Self, into renderer: inout Renderer, with context: consuming _RenderingContext) where Renderer : _HTMLRendering
static func _render<Renderer>(_ html: consuming Self, into renderer: inout Renderer, with context: consuming _RenderingContext) async throws where Renderer : _AsyncHTMLRendering
var _attributes: _AttributeStorage
var content: Content