Type Aliassliemeobn.elementary 0.5.0Elementary
Tag
AsyncContent.swift:8typealias Tag = Content.Tag
typealias Tag = Content.Tag
import Elementary
struct AsyncContent<Content> where Content : HTML
An element that awaits its content before rendering.
associatedtype Tag : HTMLTagDefinition = Self.Content.Tag
The HTML tag this component represents, if any.
init(@HTMLBuilder content: @escaping () async throws -> Content)
Creates a new async 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