diff --git a/template/components/form_switch.go b/template/components/form_switch.go new file mode 100644 index 0000000..9d43744 --- /dev/null +++ b/template/components/form_switch.go @@ -0,0 +1,8 @@ +package components + +type FormSwitch struct { + ID string + Label string + IsChecked bool + IsDisabled bool +} diff --git a/template/components/form_switch.html b/template/components/form_switch.html new file mode 100644 index 0000000..4841ffe --- /dev/null +++ b/template/components/form_switch.html @@ -0,0 +1,7 @@ +{{define "form_switch"}} + +
+ + +
+{{end}}