-
Notifications
You must be signed in to change notification settings - Fork 0
/
matchwithresultcount.go
61 lines (58 loc) · 1.34 KB
/
matchwithresultcount.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package searchinput
import app "github.com/maxence-charriere/go-app/v9/pkg/app"
type MatchWithResultCount struct {
app.Compo
}
func (c *MatchWithResultCount) Render() app.UI {
return app.Div().
Class("pf-c-search-input").
Body(
app.Div().
Class("pf-c-search-input__bar").
Body(
app.Span().
Class("pf-c-search-input__text").
Body(
app.Span().
Class("pf-c-search-input__icon").
Body(
app.I().
Class("fas fa-search fa-fw").
Aria("hidden", true),
),
app.Input().
Class("pf-c-search-input__text-input").
Type("text").
Placeholder("false").
Aria("label", "Find by name").
Value("John Doe"),
),
app.Span().
Class("pf-c-search-input__utilities").
Body(
app.Span().
Class("pf-c-search-input__count").
Body(
app.Span().
Class("pf-c-badge pf-m-read").
Body(
app.Text("3"),
),
),
app.Span().
Class("pf-c-search-input__clear").
Body(
app.Button().
Class("pf-c-button pf-m-plain").
Type("button").
Aria("label", "Clear").
Body(
app.I().
Class("fas fa-times fa-fw").
Aria("hidden", true),
),
),
),
),
)
}