-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
45 lines (35 loc) · 937 Bytes
/
types.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
package tabber
// Variant represents the variant of the tab component.
type Variant string
// String returns the string representation of the Variant.
func (v Variant) String() string {
return string(v)
}
// Placement represents where the tabs list should be positioned.
type Placement string
// String returns the string representation of the Placement.
func (p Placement) String() string {
return string(p)
}
// Alignment represents where the tab list should be aligned.
type Alignment string
// String returns the string representation of the Alignement.
func (a Alignment) String() string {
return string(a)
}
// Size represents the size of the tab component.
type Size string
// String returns the string representation of the Size.
func (s Size) String() string {
return string(s)
}
type TabIcon struct {
Value string
Size float32
}
func Icon(v string) *TabIcon {
return &TabIcon{
Value: v,
Size: 1.25,
}
}