import Elementary
struct ToggleFormButton: HTML {
var content: some HTML {
a(.href("javascript:void(0)"), .on(.click, "toggleContent('form')"), .class("btn-add")) {
"+"
}
}
}
enum Button {
static func danger(@HTMLBuilder body: () -> C) -> some HTML {
button(.class("danger")) { body() }
}
static func close(id: String) -> some HTML {
button(.class("btn-add"), .on(.click, "toggleContent('\(id)')")) { "x" }
}
}