This repository has been archived on 2026-02-12. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
swift-duct-calc/Sources/Styleguide/Row.swift

19 lines
292 B
Swift

import Elementary
public struct Row<T: HTML>: HTML, Sendable where T: Sendable {
let inner: T
public init(
@HTMLBuilder _ body: () -> T
) {
self.inner = body()
}
public var body: some HTML<HTMLTag.div> {
div(.class("flex justify-between")) {
inner
}
}
}