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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
package el
import (
g "github.com/maragudk/gomponents"
)
func Abbr(text string, children ...g.Node) g.NodeFunc {
return g.El("abbr", g.Text(text), g.Group(children))
}
func B(text string, children ...g.Node) g.NodeFunc {
return g.El("b", g.Text(text), g.Group(children))
}
func Caption(text string, children ...g.Node) g.NodeFunc {
return g.El("caption", g.Text(text), g.Group(children))
}
func Dd(text string, children ...g.Node) g.NodeFunc {
return g.El("dd", g.Text(text), g.Group(children))
}
func Del(text string, children ...g.Node) g.NodeFunc {
return g.El("del", g.Text(text), g.Group(children))
}
func Dfn(text string, children ...g.Node) g.NodeFunc {
return g.El("dfn", g.Text(text), g.Group(children))
}
func Dt(text string, children ...g.Node) g.NodeFunc {
return g.El("dt", g.Text(text), g.Group(children))
}
func Em(text string, children ...g.Node) g.NodeFunc {
return g.El("em", g.Text(text), g.Group(children))
}
func FigCaption(text string, children ...g.Node) g.NodeFunc {
return g.El("figcaption", g.Text(text), g.Group(children))
}
// H1 returns an element with name "h1", the given text content, and the given children.
func H1(text string, children ...g.Node) g.NodeFunc {
return g.El("h1", g.Text(text), g.Group(children))
}
// H2 returns an element with name "h2", the given text content, and the given children.
func H2(text string, children ...g.Node) g.NodeFunc {
return g.El("h2", g.Text(text), g.Group(children))
}
// H3 returns an element with name "h3", the given text content, and the given children.
func H3(text string, children ...g.Node) g.NodeFunc {
return g.El("h3", g.Text(text), g.Group(children))
}
// H4 returns an element with name "h4", the given text content, and the given children.
func H4(text string, children ...g.Node) g.NodeFunc {
return g.El("h4", g.Text(text), g.Group(children))
}
// H5 returns an element with name "h5", the given text content, and the given children.
func H5(text string, children ...g.Node) g.NodeFunc {
return g.El("h5", g.Text(text), g.Group(children))
}
// H6 returns an element with name "h6", the given text content, and the given children.
func H6(text string, children ...g.Node) g.NodeFunc {
return g.El("h6", g.Text(text), g.Group(children))
}
func I(text string, children ...g.Node) g.NodeFunc {
return g.El("i", g.Text(text), g.Group(children))
}
func Ins(text string, children ...g.Node) g.NodeFunc {
return g.El("ins", g.Text(text), g.Group(children))
}
func Kbd(text string, children ...g.Node) g.NodeFunc {
return g.El("kbd", g.Text(text), g.Group(children))
}
func Mark(text string, children ...g.Node) g.NodeFunc {
return g.El("mark", g.Text(text), g.Group(children))
}
func Q(text string, children ...g.Node) g.NodeFunc {
return g.El("q", g.Text(text), g.Group(children))
}
func S(text string, children ...g.Node) g.NodeFunc {
return g.El("s", g.Text(text), g.Group(children))
}
func Samp(text string, children ...g.Node) g.NodeFunc {
return g.El("samp", g.Text(text), g.Group(children))
}
func Small(text string, children ...g.Node) g.NodeFunc {
return g.El("small", g.Text(text), g.Group(children))
}
func Strong(text string, children ...g.Node) g.NodeFunc {
return g.El("strong", g.Text(text), g.Group(children))
}
func Sub(text string, children ...g.Node) g.NodeFunc {
return g.El("sub", g.Text(text), g.Group(children))
}
func Sup(text string, children ...g.Node) g.NodeFunc {
return g.El("sup", g.Text(text), g.Group(children))
}
func Time(text string, children ...g.Node) g.NodeFunc {
return g.El("time", g.Text(text), g.Group(children))
}
func Title(title string, children ...g.Node) g.NodeFunc {
return g.El("title", g.Text(title), g.Group(children))
}
func U(text string, children ...g.Node) g.NodeFunc {
return g.El("u", g.Text(text), g.Group(children))
}
func Var(text string, children ...g.Node) g.NodeFunc {
return g.El("var", g.Text(text), g.Group(children))
}
|