From 335439c165c2ab83599b05f73fe6abf6ac9e564d Mon Sep 17 00:00:00 2001 From: Jeff Verkoeyen Date: Sat, 10 Aug 2024 12:04:50 -0400 Subject: [PATCH] Add onclick support to Button. (#157) --- .../W3C/Elements/Forms/Button.swift | 37 +++++++++++++++---- .../W3C/Forms/ButtonTests.swift | 9 +++++ 2 files changed, 38 insertions(+), 8 deletions(-) diff --git a/Sources/Slipstream/W3C/Elements/Forms/Button.swift b/Sources/Slipstream/W3C/Elements/Forms/Button.swift index 8ada1e0..c7a6e4b 100644 --- a/Sources/Slipstream/W3C/Elements/Forms/Button.swift +++ b/Sources/Slipstream/W3C/Elements/Forms/Button.swift @@ -4,25 +4,46 @@ import SwiftSoup /// /// - SeeAlso: W3C [button](https://html.spec.whatwg.org/multipage/form-elements.html#the-button-element) specification. @available(iOS 17.0, macOS 14.0, *) -public struct Button: View where Content: View { +public struct Button