add password generator

This commit is contained in:
2025-03-07 12:33:40 -05:00
parent 116be25489
commit 0d386e2d9f
27 changed files with 17895 additions and 42 deletions

View File

@@ -1,6 +1,8 @@
package ui
import (
"strconv"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)
@@ -73,4 +75,24 @@ func FormTextarea(children ...Node) Node {
func FormLabel(children ...Node) Node {
return Label(InlineStyle("$me { color: $color(neutral-900); font-size: var(--text-sm); } "), Group(children))
}
func FormCheck(children ...Node) Node {
return Input(
InlineStyle(`
$me {
margin-left: $3;
}
`),
Type("checkbox"),
Group(children),
)
}
func FormSlider(min int, max int, children ...Node) Node {
return Input(
Type("range"),
Min(strconv.Itoa(min)),
Max(strconv.Itoa(max)),
)
}