0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-06-04 03:46:53 +02:00
gitea/components/search_combo.go
2025-05-27 21:14:39 -07:00

23 lines
556 B
Go

// Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
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(locale, value, placeholder, disabled),
// TODO SearchModeDropdown
SearchButton(disabled, ""),
)
}