tutuca 0.9.39 → 0.9.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tutuca-cli.js +92 -39
- package/dist/tutuca-dev.js +18 -0
- package/dist/tutuca-dev.min.js +1 -1
- package/package.json +6 -7
- package/skill/immutable-js/SKILL.md +79 -0
- package/skill/immutable-js/references/collection.md +346 -0
- package/skill/immutable-js/references/conversions.md +99 -0
- package/skill/immutable-js/references/deep-updates.md +172 -0
- package/skill/immutable-js/references/equality.md +95 -0
- package/skill/immutable-js/references/list.md +266 -0
- package/skill/immutable-js/references/map.md +300 -0
- package/skill/immutable-js/references/predicates.md +93 -0
- package/skill/immutable-js/references/range-repeat.md +55 -0
- package/skill/immutable-js/references/record.md +196 -0
- package/skill/immutable-js/references/seq.md +248 -0
- package/skill/immutable-js/references/set.md +270 -0
- package/skill/immutable-js/references/shallow-functional.md +99 -0
- package/skill/immutable-js/references/stack.md +210 -0
- package/skill/margaui/SKILL.md +101 -0
- package/skill/margaui/components/accordion.md +127 -0
- package/skill/margaui/components/alert.md +174 -0
- package/skill/margaui/components/avatar.md +220 -0
- package/skill/margaui/components/badge.md +193 -0
- package/skill/margaui/components/breadcrumbs.md +103 -0
- package/skill/margaui/components/button.md +322 -0
- package/skill/margaui/components/calendar.md +67 -0
- package/skill/margaui/components/card.md +373 -0
- package/skill/margaui/components/carousel.md +387 -0
- package/skill/margaui/components/chat.md +171 -0
- package/skill/margaui/components/checkbox.md +101 -0
- package/skill/margaui/components/collapse.md +172 -0
- package/skill/margaui/components/countdown.md +165 -0
- package/skill/margaui/components/diff.md +53 -0
- package/skill/margaui/components/divider.md +107 -0
- package/skill/margaui/components/dock.md +173 -0
- package/skill/margaui/components/drawer.md +184 -0
- package/skill/margaui/components/dropdown.md +388 -0
- package/skill/margaui/components/fab.md +346 -0
- package/skill/margaui/components/fieldset.md +88 -0
- package/skill/margaui/components/file-input.md +84 -0
- package/skill/margaui/components/filter.md +52 -0
- package/skill/margaui/components/footer.md +583 -0
- package/skill/margaui/components/hero.md +135 -0
- package/skill/margaui/components/hover-3d.md +129 -0
- package/skill/margaui/components/hover-gallery.md +49 -0
- package/skill/margaui/components/indicator.md +265 -0
- package/skill/margaui/components/input.md +389 -0
- package/skill/margaui/components/join.md +100 -0
- package/skill/margaui/components/kbd.md +127 -0
- package/skill/margaui/components/label.md +102 -0
- package/skill/margaui/components/link.md +96 -0
- package/skill/margaui/components/list.md +182 -0
- package/skill/margaui/components/loading.md +105 -0
- package/skill/margaui/components/mask.md +168 -0
- package/skill/margaui/components/menu.md +856 -0
- package/skill/margaui/components/mockup-browser.md +39 -0
- package/skill/margaui/components/mockup-code.md +81 -0
- package/skill/margaui/components/mockup-phone.md +39 -0
- package/skill/margaui/components/mockup-window.md +33 -0
- package/skill/margaui/components/modal.md +178 -0
- package/skill/margaui/components/navbar.md +282 -0
- package/skill/margaui/components/pagination.md +122 -0
- package/skill/margaui/components/progress.md +135 -0
- package/skill/margaui/components/radial-progress.md +67 -0
- package/skill/margaui/components/radio.md +133 -0
- package/skill/margaui/components/range.md +134 -0
- package/skill/margaui/components/rating.md +170 -0
- package/skill/margaui/components/select.md +225 -0
- package/skill/margaui/components/skeleton.md +64 -0
- package/skill/margaui/components/stack.md +142 -0
- package/skill/margaui/components/stat.md +254 -0
- package/skill/margaui/components/status.md +73 -0
- package/skill/margaui/components/steps.md +138 -0
- package/skill/margaui/components/swap.md +152 -0
- package/skill/margaui/components/tab.md +248 -0
- package/skill/margaui/components/table.md +1018 -0
- package/skill/margaui/components/text-rotate.md +91 -0
- package/skill/margaui/components/textarea.md +85 -0
- package/skill/margaui/components/theme-controller.md +266 -0
- package/skill/margaui/components/timeline.md +1356 -0
- package/skill/margaui/components/toast.md +165 -0
- package/skill/margaui/components/toggle.md +135 -0
- package/skill/margaui/components/tooltip.md +181 -0
- package/skill/margaui/components/validator.md +163 -0
- package/skill/{advanced.md → tutuca/advanced.md} +5 -0
- package/skill/{cli.md → tutuca/cli.md} +17 -0
- package/skill/{core.md → tutuca/core.md} +5 -0
- /package/skill/{SKILL.md → tutuca/SKILL.md} +0 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# collapse
|
|
2
|
+
|
|
3
|
+
_single show/hide region (details/summary or checkbox)_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Single expandable region driven by `<details>`, a checkbox, or focus.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- One-off show-more / read-more sections.
|
|
12
|
+
- For grouped single-open behavior across many items, use **accordion**.
|
|
13
|
+
|
|
14
|
+
## Core classes
|
|
15
|
+
|
|
16
|
+
`collapse`; modifiers `collapse-arrow|plus|open|close`; inner `collapse-title`, `collapse-content`.
|
|
17
|
+
|
|
18
|
+
## Examples
|
|
19
|
+
|
|
20
|
+
### collapse using details and summary tag
|
|
21
|
+
|
|
22
|
+
Source: `playground/components/collapse/-collapse-using-details-and-summary-tag.html`
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<details class="collapse bg-base-100 border-base-300 border">
|
|
26
|
+
<summary class="collapse-title font-semibold">How do I create an account?</summary>
|
|
27
|
+
<div class="collapse-content text-sm">
|
|
28
|
+
Click the "Sign Up" button in the top right corner and follow the registration process.
|
|
29
|
+
</div>
|
|
30
|
+
</details>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Collapse with checkbox
|
|
34
|
+
|
|
35
|
+
Source: `playground/components/collapse/collapse-with-checkbox.html`
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<div class="collapse bg-base-100 border-base-300 border">
|
|
39
|
+
<input type="checkbox" />
|
|
40
|
+
<div class="collapse-title font-semibold">How do I create an account?</div>
|
|
41
|
+
<div class="collapse-content text-sm">
|
|
42
|
+
Click the "Sign Up" button in the top right corner and follow the registration process.
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Collapse with focus
|
|
48
|
+
|
|
49
|
+
Source: `playground/components/collapse/collapse-with-focus.html`
|
|
50
|
+
|
|
51
|
+
```html
|
|
52
|
+
<div tabindex="0" class="collapse bg-base-100 border-base-300 border">
|
|
53
|
+
<div class="collapse-title font-semibold">How do I create an account?</div>
|
|
54
|
+
<div class="collapse-content text-sm">
|
|
55
|
+
Click the "Sign Up" button in the top right corner and follow the registration process.
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Custom colors for collapse that works with checkbox
|
|
61
|
+
|
|
62
|
+
Source: `playground/components/collapse/custom-colors-for-collapse-that-works-with-checkbox.html`
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<div class="bg-base-100 border-base-300 collapse border">
|
|
66
|
+
<input type="checkbox" class="peer" />
|
|
67
|
+
<div
|
|
68
|
+
class="collapse-title bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content"
|
|
69
|
+
>
|
|
70
|
+
How do I create an account?
|
|
71
|
+
</div>
|
|
72
|
+
<div
|
|
73
|
+
class="collapse-content bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content"
|
|
74
|
+
>
|
|
75
|
+
Click the "Sign Up" button in the top right corner and follow the registration process.
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Custom colors for collapse that works with focus
|
|
81
|
+
|
|
82
|
+
Source: `playground/components/collapse/custom-colors-for-collapse-that-works-with-focus.html`
|
|
83
|
+
|
|
84
|
+
```html
|
|
85
|
+
<div
|
|
86
|
+
tabindex="0"
|
|
87
|
+
class="bg-primary text-primary-content focus:bg-secondary focus:text-secondary-content collapse"
|
|
88
|
+
>
|
|
89
|
+
<div class="collapse-title font-semibold">How do I create an account?</div>
|
|
90
|
+
<div class="collapse-content text-sm">
|
|
91
|
+
Click the "Sign Up" button in the top right corner and follow the registration process.
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Force close
|
|
97
|
+
|
|
98
|
+
Source: `playground/components/collapse/force-close.html`
|
|
99
|
+
|
|
100
|
+
```html
|
|
101
|
+
<div tabindex="0" class="collapse collapse-close bg-base-100 border-base-300 border">
|
|
102
|
+
<div class="collapse-title font-semibold">I have collapse-close class</div>
|
|
103
|
+
<div class="collapse-content text-sm">
|
|
104
|
+
Click the "Sign Up" button in the top right corner and follow the registration process.
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Force open
|
|
110
|
+
|
|
111
|
+
Source: `playground/components/collapse/force-open.html`
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<div tabindex="0" class="collapse collapse-open bg-base-100 border-base-300 border">
|
|
115
|
+
<div class="collapse-title font-semibold">I have collapse-open class</div>
|
|
116
|
+
<div class="collapse-content text-sm">
|
|
117
|
+
Click the "Sign Up" button in the top right corner and follow the registration process.
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Moving collapse icon to the start
|
|
123
|
+
|
|
124
|
+
Source: `playground/components/collapse/moving-collapse-icon-to-the-start.html`
|
|
125
|
+
|
|
126
|
+
```html
|
|
127
|
+
<div tabindex="0" class="collapse collapse-arrow bg-base-100 border-base-300 border">
|
|
128
|
+
<div class="collapse-title font-semibold after:start-5 after:end-auto pe-4 ps-12">How do I create an account?</div>
|
|
129
|
+
<div class="collapse-content text-sm">
|
|
130
|
+
Click the "Sign Up" button in the top right corner and follow the registration process.
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### With arrow icon
|
|
136
|
+
|
|
137
|
+
Source: `playground/components/collapse/with-arrow-icon.html`
|
|
138
|
+
|
|
139
|
+
```html
|
|
140
|
+
<div tabindex="0" class="collapse collapse-arrow bg-base-100 border-base-300 border">
|
|
141
|
+
<div class="collapse-title font-semibold">How do I create an account?</div>
|
|
142
|
+
<div class="collapse-content text-sm">
|
|
143
|
+
Click the "Sign Up" button in the top right corner and follow the registration process.
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### With arrow plusminus icon
|
|
149
|
+
|
|
150
|
+
Source: `playground/components/collapse/with-arrow-plusminus-icon.html`
|
|
151
|
+
|
|
152
|
+
```html
|
|
153
|
+
<div tabindex="0" class="collapse collapse-plus bg-base-100 border-base-300 border">
|
|
154
|
+
<div class="collapse-title font-semibold">How do I create an account?</div>
|
|
155
|
+
<div class="collapse-content text-sm">
|
|
156
|
+
Click the "Sign Up" button in the top right corner and follow the registration process.
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Without border and background color
|
|
162
|
+
|
|
163
|
+
Source: `playground/components/collapse/without-border-and-background-color.html`
|
|
164
|
+
|
|
165
|
+
```html
|
|
166
|
+
<div tabindex="0" class="collapse">
|
|
167
|
+
<div class="collapse-title font-semibold">How do I create an account?</div>
|
|
168
|
+
<div class="collapse-content text-sm">
|
|
169
|
+
Click the "Sign Up" button in the top right corner and follow the registration process.
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
```
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# countdown
|
|
2
|
+
|
|
3
|
+
_animated digit transitions for timers / clocks_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Animates between digits using CSS counters and `--value`. Works for clocks, timers, large stat displays.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Live countdown timers, clocks, animated number reveals.
|
|
12
|
+
|
|
13
|
+
## Core classes
|
|
14
|
+
|
|
15
|
+
`countdown`; child `<span style="--value:N"></span>` per digit group.
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
### Countdown
|
|
20
|
+
|
|
21
|
+
Source: `playground/components/countdown/countdown.html`
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<span class="countdown">
|
|
25
|
+
<span style="--value:59;" aria-live="polite" aria-label="59">59</span>
|
|
26
|
+
</span>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Clock countdown with colons
|
|
30
|
+
|
|
31
|
+
Source: `playground/components/countdown/clock-countdown-with-colons.html`
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<span class="countdown font-mono text-2xl">
|
|
35
|
+
<span style="--value:10;" aria-live="polite" aria-label="10">10</span>
|
|
36
|
+
:
|
|
37
|
+
<span style="--value:24; --digits: 2;" aria-live="polite" aria-label="24">24</span>
|
|
38
|
+
:
|
|
39
|
+
<span style="--value:59; --digits: 2;" aria-live="polite" aria-label="59">59</span>
|
|
40
|
+
</span>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Clock countdown
|
|
44
|
+
|
|
45
|
+
Source: `playground/components/countdown/clock-countdown.html`
|
|
46
|
+
|
|
47
|
+
```html
|
|
48
|
+
<span class="countdown font-mono text-2xl">
|
|
49
|
+
<span style="--value:10;" aria-live="polite" aria-label="10">10</span>
|
|
50
|
+
h
|
|
51
|
+
<span style="--value:24;" aria-live="polite" aria-label="24">24</span>
|
|
52
|
+
m
|
|
53
|
+
<span style="--value:59;" aria-live="polite" aria-label="59">59</span>
|
|
54
|
+
s
|
|
55
|
+
</span>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### In boxes
|
|
59
|
+
|
|
60
|
+
Source: `playground/components/countdown/in-boxes.html`
|
|
61
|
+
|
|
62
|
+
```html
|
|
63
|
+
<div class="grid auto-cols-max grid-flow-col gap-5 text-center">
|
|
64
|
+
<div class="bg-neutral rounded-box text-neutral-content flex flex-col p-2">
|
|
65
|
+
<span class="countdown font-mono text-5xl">
|
|
66
|
+
<span style="--value:15;" aria-live="polite" aria-label="15">15</span>
|
|
67
|
+
</span>
|
|
68
|
+
days
|
|
69
|
+
</div>
|
|
70
|
+
<div class="bg-neutral rounded-box text-neutral-content flex flex-col p-2">
|
|
71
|
+
<span class="countdown font-mono text-5xl">
|
|
72
|
+
<span style="--value:10;" aria-live="polite" aria-label="10">10</span>
|
|
73
|
+
</span>
|
|
74
|
+
hours
|
|
75
|
+
</div>
|
|
76
|
+
<div class="bg-neutral rounded-box text-neutral-content flex flex-col p-2">
|
|
77
|
+
<span class="countdown font-mono text-5xl">
|
|
78
|
+
<span style="--value:24;" aria-live="polite" aria-label="24">24</span>
|
|
79
|
+
</span>
|
|
80
|
+
min
|
|
81
|
+
</div>
|
|
82
|
+
<div class="bg-neutral rounded-box text-neutral-content flex flex-col p-2">
|
|
83
|
+
<span class="countdown font-mono text-5xl">
|
|
84
|
+
<span style="--value:59;" aria-live="polite" aria-label="59">59</span>
|
|
85
|
+
</span>
|
|
86
|
+
sec
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Large text with 2 digits
|
|
92
|
+
|
|
93
|
+
Source: `playground/components/countdown/large-text-with-2-digits.html`
|
|
94
|
+
|
|
95
|
+
```html
|
|
96
|
+
<span class="countdown font-mono text-6xl">
|
|
97
|
+
<span style="--value:59; --digits: 2;" aria-live="polite" aria-label="59">59</span>
|
|
98
|
+
</span>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Large text with labels under
|
|
102
|
+
|
|
103
|
+
Source: `playground/components/countdown/large-text-with-labels-under.html`
|
|
104
|
+
|
|
105
|
+
```html
|
|
106
|
+
<div class="grid auto-cols-max grid-flow-col gap-5 text-center">
|
|
107
|
+
<div class="flex flex-col">
|
|
108
|
+
<span class="countdown font-mono text-5xl">
|
|
109
|
+
<span style="--value:15;" aria-live="polite" aria-label="15">15</span>
|
|
110
|
+
</span>
|
|
111
|
+
days
|
|
112
|
+
</div>
|
|
113
|
+
<div class="flex flex-col">
|
|
114
|
+
<span class="countdown font-mono text-5xl">
|
|
115
|
+
<span style="--value:10;" aria-live="polite" aria-label="10">10</span>
|
|
116
|
+
</span>
|
|
117
|
+
hours
|
|
118
|
+
</div>
|
|
119
|
+
<div class="flex flex-col">
|
|
120
|
+
<span class="countdown font-mono text-5xl">
|
|
121
|
+
<span style="--value:24;" aria-live="polite" aria-label="24">24</span>
|
|
122
|
+
</span>
|
|
123
|
+
min
|
|
124
|
+
</div>
|
|
125
|
+
<div class="flex flex-col">
|
|
126
|
+
<span class="countdown font-mono text-5xl">
|
|
127
|
+
<span style="--value:59;" aria-live="polite" aria-label="59">59</span>
|
|
128
|
+
</span>
|
|
129
|
+
sec
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Large text with labels
|
|
135
|
+
|
|
136
|
+
Source: `playground/components/countdown/large-text-with-labels.html`
|
|
137
|
+
|
|
138
|
+
```html
|
|
139
|
+
<div class="flex gap-5">
|
|
140
|
+
<div>
|
|
141
|
+
<span class="countdown font-mono text-4xl">
|
|
142
|
+
<span style="--value:15;" aria-live="polite" aria-label="15">15</span>
|
|
143
|
+
</span>
|
|
144
|
+
days
|
|
145
|
+
</div>
|
|
146
|
+
<div>
|
|
147
|
+
<span class="countdown font-mono text-4xl">
|
|
148
|
+
<span style="--value:10;" aria-live="polite" aria-label="10">10</span>
|
|
149
|
+
</span>
|
|
150
|
+
hours
|
|
151
|
+
</div>
|
|
152
|
+
<div>
|
|
153
|
+
<span class="countdown font-mono text-4xl">
|
|
154
|
+
<span style="--value:24;" aria-live="polite" aria-label="24">24</span>
|
|
155
|
+
</span>
|
|
156
|
+
min
|
|
157
|
+
</div>
|
|
158
|
+
<div>
|
|
159
|
+
<span class="countdown font-mono text-4xl">
|
|
160
|
+
<span style="--value:59;" aria-live="polite" aria-label="59">59</span>
|
|
161
|
+
</span>
|
|
162
|
+
sec
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
```
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# diff
|
|
2
|
+
|
|
3
|
+
_side-by-side image/text comparison with draggable handle_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Two-pane comparison with a draggable resizer.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Before/after image comparisons, theme/typography comparisons.
|
|
12
|
+
|
|
13
|
+
## Core classes
|
|
14
|
+
|
|
15
|
+
`diff`; inner `diff-item-1`, `diff-item-2`, `diff-resizer`.
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
### Diff
|
|
20
|
+
|
|
21
|
+
Source: `playground/components/diff/diff.html`
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<figure class="diff aspect-16/9" tabindex="0">
|
|
25
|
+
<div class="diff-item-1" role="img" tabindex="0">
|
|
26
|
+
<img alt="daisy" src="https://img.daisyui.com/images/stock/photo-1560717789-0ac7c58ac90a.webp" />
|
|
27
|
+
</div>
|
|
28
|
+
<div class="diff-item-2" role="img">
|
|
29
|
+
<img
|
|
30
|
+
alt="daisy"
|
|
31
|
+
src="https://img.daisyui.com/images/stock/photo-1560717789-0ac7c58ac90a-blur.webp" />
|
|
32
|
+
</div>
|
|
33
|
+
<div class="diff-resizer"></div>
|
|
34
|
+
</figure>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Diff text
|
|
38
|
+
|
|
39
|
+
Source: `playground/components/diff/diff-text.html`
|
|
40
|
+
|
|
41
|
+
```html
|
|
42
|
+
<figure class="diff aspect-16/9" tabindex="0">
|
|
43
|
+
<div class="diff-item-1" role="img" tabindex="0">
|
|
44
|
+
<div class="bg-primary text-primary-content grid place-content-center text-9xl font-black">
|
|
45
|
+
DAISY
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="diff-item-2" role="img">
|
|
49
|
+
<div class="bg-base-200 grid place-content-center text-9xl font-black">DAISY</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="diff-resizer"></div>
|
|
52
|
+
</figure>
|
|
53
|
+
```
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# divider
|
|
2
|
+
|
|
3
|
+
_horizontal / vertical separator with optional label_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Separator line with optional centered text and optional color.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Visually separating form sections, content blocks, sidebar groups.
|
|
12
|
+
|
|
13
|
+
## Core classes
|
|
14
|
+
|
|
15
|
+
`divider`; orientation `divider-horizontal|vertical`; position `divider-start|end`; color `divider-primary|secondary|accent|neutral|success|warning|info|error`.
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
### Divider
|
|
20
|
+
|
|
21
|
+
Source: `playground/components/divider/divider.html`
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<div class="flex w-full flex-col">
|
|
25
|
+
<div class="card bg-base-300 rounded-box grid h-20 place-items-center">content</div>
|
|
26
|
+
<div class="divider">OR</div>
|
|
27
|
+
<div class="card bg-base-300 rounded-box grid h-20 place-items-center">content</div>
|
|
28
|
+
</div>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Divider horizontal
|
|
32
|
+
|
|
33
|
+
Source: `playground/components/divider/divider-horizontal.html`
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<div class="flex w-full">
|
|
37
|
+
<div class="card bg-base-300 rounded-box grid h-20 grow place-items-center">content</div>
|
|
38
|
+
<div class="divider divider-horizontal">OR</div>
|
|
39
|
+
<div class="card bg-base-300 rounded-box grid h-20 grow place-items-center">content</div>
|
|
40
|
+
</div>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Divider in different positions horizontal
|
|
44
|
+
|
|
45
|
+
Source: `playground/components/divider/divider-in-different-positions-horizontal.html`
|
|
46
|
+
|
|
47
|
+
```html
|
|
48
|
+
<div class="flex w-full">
|
|
49
|
+
<div class="divider divider-horizontal divider-start">Start</div>
|
|
50
|
+
<div class="divider divider-horizontal">Default</div>
|
|
51
|
+
<div class="divider divider-horizontal divider-end">End</div>
|
|
52
|
+
</div>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Divider in different positions
|
|
56
|
+
|
|
57
|
+
Source: `playground/components/divider/divider-in-different-positions.html`
|
|
58
|
+
|
|
59
|
+
```html
|
|
60
|
+
<div class="flex w-full flex-col">
|
|
61
|
+
<div class="divider divider-start">Start</div>
|
|
62
|
+
<div class="divider">Default</div>
|
|
63
|
+
<div class="divider divider-end">End</div>
|
|
64
|
+
</div>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Divider with colors
|
|
68
|
+
|
|
69
|
+
Source: `playground/components/divider/divider-with-colors.html`
|
|
70
|
+
|
|
71
|
+
```html
|
|
72
|
+
<div class="flex w-full flex-col">
|
|
73
|
+
<div class="divider">Default</div>
|
|
74
|
+
<div class="divider divider-neutral">Neutral</div>
|
|
75
|
+
<div class="divider divider-primary">Primary</div>
|
|
76
|
+
<div class="divider divider-secondary">Secondary</div>
|
|
77
|
+
<div class="divider divider-accent">Accent</div>
|
|
78
|
+
<div class="divider divider-success">Success</div>
|
|
79
|
+
<div class="divider divider-warning">Warning</div>
|
|
80
|
+
<div class="divider divider-info">Info</div>
|
|
81
|
+
<div class="divider divider-error">Error</div>
|
|
82
|
+
</div>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Divider with no text
|
|
86
|
+
|
|
87
|
+
Source: `playground/components/divider/divider-with-no-text.html`
|
|
88
|
+
|
|
89
|
+
```html
|
|
90
|
+
<div class="flex w-full flex-col">
|
|
91
|
+
<div class="card bg-base-300 rounded-box grid h-20 place-items-center">content</div>
|
|
92
|
+
<div class="divider"></div>
|
|
93
|
+
<div class="card bg-base-300 rounded-box grid h-20 place-items-center">content</div>
|
|
94
|
+
</div>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Responsive lgdivider horizontal
|
|
98
|
+
|
|
99
|
+
Source: `playground/components/divider/responsive-lgdivider-horizontal.html`
|
|
100
|
+
|
|
101
|
+
```html
|
|
102
|
+
<div class="flex w-full flex-col lg:flex-row">
|
|
103
|
+
<div class="card bg-base-300 rounded-box grid h-32 grow place-items-center">content</div>
|
|
104
|
+
<div class="divider lg:divider-horizontal">OR</div>
|
|
105
|
+
<div class="card bg-base-300 rounded-box grid h-32 grow place-items-center">content</div>
|
|
106
|
+
</div>
|
|
107
|
+
```
|