Files
swift-hvac-toolbox/Sources/Styleguide/RoundedBox.swift
Michael Housh 159031a023
Some checks are pending
CI / macOS (debug, 16.2) (push) Waiting to run
CI / macOS (release, 16.2) (push) Waiting to run
CI / ubuntu (push) Successful in 6m58s
feat: Adds hydronic system pressure calculator.
2025-03-07 15:15:28 -05:00

19 lines
398 B
Swift

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 {}