rm -r --cached pkg/web

This commit is contained in:
viljarb
2026-02-18 20:48:30 +01:00
parent a6ec856759
commit 77dd155299
37 changed files with 0 additions and 3558 deletions

View File

@@ -1,53 +0,0 @@
package base
import "fmt"
type RangeProps struct {
ID string
Label string
Name string
Value int
Min int
Max int
Step int
Class string
Size string
}
templ Range(props RangeProps) {
<div class="form-control">
<label
for={ props.Name }
class="label space-x-1 w-full"
x-data={ fmt.Sprintf("{ value: %d }", props.Value) }
>
if props.Label != "" {
<span
class={
templ.KV("text-xs", props.Size == "xs"),
templ.KV("text-sm", props.Size == "sm"),
templ.KV("text-lg", props.Size == "lg"),
templ.KV("text-xl", props.Size == "xl"),
}
>{ props.Label }</span>
}
<input
type="range"
id={ props.Name }
name={ props.Name }
min={ fmt.Sprintf("%d", props.Min) }
max={ fmt.Sprintf("%d", props.Max) }
x-model="value"
class={
"range", props.Class,
templ.KV("range-xs", props.Size == "xs"),
templ.KV("range-sm", props.Size == "sm"),
templ.KV("range-lg", props.Size == "lg"),
templ.KV("range-xl", props.Size == "xl"),
}
step={ fmt.Sprintf("%d", props.Step) }
/>
<div x-text="value" class="w-full max-w-7"></div>
</label>
</div>
}