diff --git a/htmx-servant.cabal b/htmx-servant.cabal
--- a/htmx-servant.cabal
+++ b/htmx-servant.cabal
@@ -1,6 +1,6 @@
 cabal-version:      3.6
 name:               htmx-servant
-version:            0.1.0.0
+version:            0.2.0.0
 synopsis:           Use htmx with servant
 description:
   Please see the README on GitHub at <https://github.com/JonathanLorimer/htmx#readme>
@@ -36,7 +36,7 @@
     , base        >=4.7      && <5
     , htmx
     , htmx-lucid
-    , lucid       >=2.9.12.1 && <2.11.20230408.0
+    , lucid2      >=0.0.20221012
     , servant     >=0.19     && <0.30
     , text        >=2        && <3
 
diff --git a/src/Htmx/Servant/Lucid.hs b/src/Htmx/Servant/Lucid.hs
--- a/src/Htmx/Servant/Lucid.hs
+++ b/src/Htmx/Servant/Lucid.hs
@@ -27,28 +27,28 @@
     hxPatch_,
     hxPut_,
  )
-import Lucid.Base (Attribute)
+import Lucid.Base (Attributes)
 import Servant.API (ToHttpApiData (..), toUrlPiece)
 import Servant.Links (Link)
 
-hxDeleteSafe_ :: Link -> Attribute
+hxDeleteSafe_ :: Link -> Attributes
 hxDeleteSafe_ = hxDelete_ . toUrl
 
-hxGetSafe_ :: Link -> Attribute
+hxGetSafe_ :: Link -> Attributes
 hxGetSafe_ = hxGet_ . toUrl
 
-hxPatchSafe_ :: Link -> Attribute
+hxPatchSafe_ :: Link -> Attributes
 hxPatchSafe_ = hxPatch_ . toUrl
 
-hxPostSafe_ :: Link -> Attribute
+hxPostSafe_ :: Link -> Attributes
 hxPostSafe_ = hxPost_ . toUrl
 
-hxPushUrlSafe_ :: Either Bool Link -> Attribute
+hxPushUrlSafe_ :: Either Bool Link -> Attributes
 hxPushUrlSafe_ boolOrUrl = hxPushUrl_ $ case boolOrUrl of
     Left bool -> if bool then "true" else "false"
     Right url -> toUrl url
 
-hxPutSafe_ :: Link -> Attribute
+hxPutSafe_ :: Link -> Attributes
 hxPutSafe_ = hxPut_ . toUrl
 
 toUrl :: (ToHttpApiData a) => a -> Text
