Initializersliemeobn.elementary 0.5.0Elementary
init(_:)
Creates a new HTML void element with the specified attribute.
init(_ attribute: HTMLAttribute<Tag>)
Parameters
- attribute
The attribute to apply to the element.
Creates a new HTML void element with the specified attribute.
init(_ attribute: HTMLAttribute<Tag>)
s10Elementary15HTMLVoidElementVyACyxGAA13HTMLAttributeVyxGcfc
What are these?1V5X7
The attribute to apply to the element.
import Elementary
struct HTMLVoidElement<Tag> where Tag : HTMLTrait.Unpaired
An HTML element that does not contain content.
struct HTMLAttribute<Tag> where Tag : HTMLTagDefinition
An HTML attribute that can be applied to an HTML element of the associated tag.
init()
Creates a new HTML void element.
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 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
typealias Tag = Tag
The type of the HTML tag this element represents.