feat: Adds hydronic system pressure calculator.
This commit is contained in:
18
Sources/Styleguide/RoundedBox.swift
Normal file
18
Sources/Styleguide/RoundedBox.swift
Normal file
@@ -0,0 +1,18 @@
|
||||
import Elementary
|
||||
|
||||
// A rounded box, with no color styles. Colors should be added at call site.
|
||||
public struct Box<Body: HTML>: HTML {
|
||||
let body: Body
|
||||
|
||||
public init(@HTMLBuilder body: () -> Body) {
|
||||
self.body = body()
|
||||
}
|
||||
|
||||
public var content: some HTML<HTMLTag.div> {
|
||||
div(.class("w-full rounded-lg shadow-lgp-6")) {
|
||||
body
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension Box: Sendable where Body: Sendable {}
|
||||
Reference in New Issue
Block a user