import Elementary
public struct Row: HTML {
let body: Body
public init(
@HTMLBuilder body: () -> Body
) {
self.body = body()
}
public var content: some HTML {
div(.class("flex justify-between")) {
body
}
}
}
public extension Row
where Body == _HTMLTuple2, HTMLElement>
{
init(
label: String,
value: String
) {
self.init {
span(.class("font-bold")) { label }
span { value }
}
}
}
extension Row: Sendable where Body: Sendable {}