0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-19 00:01:33 +01:00
gitea/components/search_combo.go
2025-05-27 20:25:07 -07:00

20 lines
457 B
Go

package components
import (
"code.gitea.io/gitea/modules/translation"
g "maragu.dev/gomponents"
gh "maragu.dev/gomponents/html"
)
func SearchCombo(locale translation.Locale, value, placeholder string) g.Node {
// Corresponds to templates/shared/search/combo.tmpl
disabled := false
return gh.Div(
gh.Class("ui small fluid action input"),
SearchInput(value, placeholder, disabled),
// TODO SearchModeDropdown
SearchButton(disabled, ""),
)
}