Initializersliemeobn.elementary 0.5.0Elementary
init(_:)
Creates a new HTML void element with the specified attributes.
init(_ attributes: HTMLAttribute<Tag>...)
Parameters
- attributes
The attributes to apply to the element.
Creates a new HTML void element with the specified attributes.
init(_ attributes: HTMLAttribute<Tag>...)
s10Elementary15HTMLVoidElementVyACyxGAA13HTMLAttributeVyxGd_tcfc
What are these?6MJIC
The attributes 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(_ 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.
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.