Type Aliassliemeobn.elementary 0.5.3Elementary
Tag
The type of the HTML tag this element represents.
typealias Tag = TagThe type of the HTML tag this element represents.
typealias Tag = Tagimport Elementarystruct HTMLVoidElement<Tag> where Tag : HTMLTrait.UnpairedAn HTML element that does not contain content.
init() Creates a new HTML void element.
init(_ attribute: HTMLAttribute<Tag>) Creates a new HTML void element with the specified attribute.
init(_ attributes: HTMLAttribute<Tag>...) Creates a new HTML void element with the specified attributes.
init(attributes: [HTMLAttribute<Tag>]) Creates a new HTML void element with the specified attributes.
static func _render<Renderer>(_ html: consuming HTMLVoidElement<Tag>, into renderer: inout Renderer, with context: consuming _RenderingContext) where Renderer : _HTMLRendering static func _render<Renderer>(_ html: consuming HTMLVoidElement<Tag>, into renderer: inout Renderer, with context: consuming _RenderingContext) async throws where Renderer : _AsyncHTMLRendering var _attributes: _AttributeStorage