Previews

No matching results.

x
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<div class="space-y-8 p-4">
<div>
<h3 class="text-sm font-semibold text-grayscale-700 mb-2">Center Label (default)</h3>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-grayscale-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">OR</span>
<div class="flex-grow border-solid border-t-4 border-grayscale-300"></div>
</div>
</div>
<div>
<h3 class="text-sm font-semibold text-grayscale-700 mb-2">Left Label</h3>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow-0 w-8 border-solid border-t-4 border-grayscale-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Section 1</span>
<div class="flex-grow border-solid border-t-4 border-grayscale-300"></div>
</div>
</div>
<div>
<h3 class="text-sm font-semibold text-grayscale-700 mb-2">Right Label</h3>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-grayscale-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Continue</span>
<div class="flex-grow-0 w-8 border-solid border-t-4 border-grayscale-300"></div>
</div>
</div>
<hr class="my-8 border-grayscale-200">
<h3 class="text-sm font-semibold text-grayscale-700 mb-4">Labels with Variants</h3>
<div>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-grayscale-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Default</span>
<div class="flex-grow border-solid border-t-4 border-grayscale-300"></div>
</div>
</div>
<div>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-primary-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Primary</span>
<div class="flex-grow border-solid border-t-4 border-primary-300"></div>
</div>
</div>
<div>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-secondary-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Secondary</span>
<div class="flex-grow border-solid border-t-4 border-secondary-300"></div>
</div>
</div>
<div>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-accent-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Accent</span>
<div class="flex-grow border-solid border-t-4 border-accent-300"></div>
</div>
</div>
<div>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-success-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Success</span>
<div class="flex-grow border-solid border-t-4 border-success-300"></div>
</div>
</div>
<div>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-danger-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Danger</span>
<div class="flex-grow border-solid border-t-4 border-danger-300"></div>
</div>
</div>
<div>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-warning-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Warning</span>
<div class="flex-grow border-solid border-t-4 border-warning-300"></div>
</div>
</div>
<div>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-info-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Info</span>
<div class="flex-grow border-solid border-t-4 border-info-300"></div>
</div>
</div>
<div>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-grayscale-200"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Light</span>
<div class="flex-grow border-solid border-t-4 border-grayscale-200"></div>
</div>
</div>
<div>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-grayscale-600"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Dark</span>
<div class="flex-grow border-solid border-t-4 border-grayscale-600"></div>
</div>
</div>
<hr class="my-8 border-grayscale-200">
<h3 class="text-sm font-semibold text-grayscale-700 mb-4">Labels with Styles</h3>
<div>
<p class="text-xs text-grayscale-500 mb-1">Solid</p>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-primary-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Solid</span>
<div class="flex-grow border-solid border-t-4 border-primary-300"></div>
</div>
</div>
<div>
<p class="text-xs text-grayscale-500 mb-1">Dashed</p>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-dashed border-t-4 border-primary-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Dashed</span>
<div class="flex-grow border-dashed border-t-4 border-primary-300"></div>
</div>
</div>
<div>
<p class="text-xs text-grayscale-500 mb-1">Dotted</p>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-dotted border-t-4 border-primary-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">Dotted</span>
<div class="flex-grow border-dotted border-t-4 border-primary-300"></div>
</div>
</div>
<hr class="my-8 border-grayscale-200">
<h3 class="text-sm font-semibold text-grayscale-700 mb-4">Labels with Sizes</h3>
<div>
<p class="text-xs text-grayscale-500 mb-1">Extra Small (xs)</p>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-t border-solid border-primary-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">XS</span>
<div class="flex-grow border-t border-solid border-primary-300"></div>
</div>
</div>
<div>
<p class="text-xs text-grayscale-500 mb-1">Small (sm)</p>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-2 border-primary-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">SM</span>
<div class="flex-grow border-solid border-t-2 border-primary-300"></div>
</div>
</div>
<div>
<p class="text-xs text-grayscale-500 mb-1">Medium (md)</p>
<div class="flex items-center my-4" role="separator" >
<div class="flex-grow border-solid border-t-4 border-primary-300"></div>
<span class="px-3 text-sm text-grayscale-500 whitespace-nowrap">MD</span>
<div class="flex-grow border-solid border-t-4 border-primary-300"></div>
</div>
</div>
</div>
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
<div class="space-y-8 p-4">
<div>
<h3 class="text-sm font-semibold text-grayscale-700 mb-2">Center Label (default)</h3>
<%= render BetterUi::DividerComponent.new(label: "OR") %>
</div>
<div>
<h3 class="text-sm font-semibold text-grayscale-700 mb-2">Left Label</h3>
<%= render BetterUi::DividerComponent.new(label: "Section 1", label_position: :left) %>
</div>
<div>
<h3 class="text-sm font-semibold text-grayscale-700 mb-2">Right Label</h3>
<%= render BetterUi::DividerComponent.new(label: "Continue", label_position: :right) %>
</div>
<hr class="my-8 border-grayscale-200">
<h3 class="text-sm font-semibold text-grayscale-700 mb-4">Labels with Variants</h3>
<% [nil, :primary, :secondary, :accent, :success, :danger, :warning, :info, :light, :dark].each do |variant| %>
<div>
<%= render BetterUi::DividerComponent.new(
label: variant ? variant.to_s.capitalize : "Default",
variant: variant
) %>
</div>
<% end %>
<hr class="my-8 border-grayscale-200">
<h3 class="text-sm font-semibold text-grayscale-700 mb-4">Labels with Styles</h3>
<div>
<p class="text-xs text-grayscale-500 mb-1">Solid</p>
<%= render BetterUi::DividerComponent.new(label: "Solid", style: :solid, variant: :primary) %>
</div>
<div>
<p class="text-xs text-grayscale-500 mb-1">Dashed</p>
<%= render BetterUi::DividerComponent.new(label: "Dashed", style: :dashed, variant: :primary) %>
</div>
<div>
<p class="text-xs text-grayscale-500 mb-1">Dotted</p>
<%= render BetterUi::DividerComponent.new(label: "Dotted", style: :dotted, variant: :primary) %>
</div>
<hr class="my-8 border-grayscale-200">
<h3 class="text-sm font-semibold text-grayscale-700 mb-4">Labels with Sizes</h3>
<div>
<p class="text-xs text-grayscale-500 mb-1">Extra Small (xs)</p>
<%= render BetterUi::DividerComponent.new(label: "XS", size: :xs, variant: :primary) %>
</div>
<div>
<p class="text-xs text-grayscale-500 mb-1">Small (sm)</p>
<%= render BetterUi::DividerComponent.new(label: "SM", size: :sm, variant: :primary) %>
</div>
<div>
<p class="text-xs text-grayscale-500 mb-1">Medium (md)</p>
<%= render BetterUi::DividerComponent.new(label: "MD", size: :md, variant: :primary) %>
</div>
</div>