")
if err != nil {
return err
}
@@ -59,7 +59,7 @@ func EnvelopeTab(props EnvelopeTabProps) templ.Component {
if err != nil {
return err
}
- _, err = templBuffer.WriteString("\" aria-controls=\"tab-content\" role=\"tab\">")
+ _, err = templBuffer.WriteString("\" aria-controls=\"tab-content\" role=\"tab\" hx-target=\"#tabs\" hx-swap=\"innerHTML\">")
if err != nil {
return err
}
@@ -94,7 +94,7 @@ func EnvelopeTab(props EnvelopeTabProps) templ.Component {
if err != nil {
return err
}
- _, err = templBuffer.WriteString("\" aria-controls=\"tab-content\" role=\"tab\">")
+ _, err = templBuffer.WriteString("\" aria-controls=\"tab-content\" role=\"tab\" hx-target=\"#tabs\" hx-swap=\"innerHTML\">")
if err != nil {
return err
}
@@ -130,7 +130,7 @@ func EnvelopeTab(props EnvelopeTabProps) templ.Component {
if err != nil {
return err
}
- _, err = templBuffer.WriteString("\" aria-controls=\"tab-content\" role=\"tab\">")
+ _, err = templBuffer.WriteString("\" aria-controls=\"tab-content\" role=\"tab\" hx-target=\"#tabs\" hx-swap=\"innerHTML\">")
if err != nil {
return err
}
diff --git a/web/icons/icons.templ b/web/icons/icons.templ
index 28c79998..d9e4d9e1 100644
--- a/web/icons/icons.templ
+++ b/web/icons/icons.templ
@@ -88,3 +88,8 @@ templ ArrowDownS(class any) {
}
+// https://remixicon.com/icon/download-line
+templ Download(class any) {
+
+}
+
diff --git a/web/icons/icons_templ.go b/web/icons/icons_templ.go
index c9c1404d..ca13bae2 100644
--- a/web/icons/icons_templ.go
+++ b/web/icons/icons_templ.go
@@ -691,3 +691,42 @@ func ArrowDownS(class any) templ.Component {
return err
})
}
+
+// https://remixicon.com/icon/download-line
+
+func Download(class any) templ.Component {
+ return templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) {
+ templBuffer, templIsBuffer := w.(*bytes.Buffer)
+ if !templIsBuffer {
+ templBuffer = templ.GetBuffer()
+ defer templ.ReleaseBuffer(templBuffer)
+ }
+ ctx = templ.InitializeContext(ctx)
+ var_36 := templ.GetChildren(ctx)
+ if var_36 == nil {
+ var_36 = templ.NopComponent
+ }
+ ctx = templ.ClearChildren(ctx)
+ var var_37 = []any{class, "fill-current"}
+ err = templ.RenderCSSItems(ctx, templBuffer, var_37...)
+ if err != nil {
+ return err
+ }
+ _, err = templBuffer.WriteString("
")
+ if err != nil {
+ return err
+ }
+ if !templIsBuffer {
+ _, err = templBuffer.WriteTo(w)
+ }
+ return err
+ })
+}