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,39 @@
|
|
|
1
|
+
# mockup-browser
|
|
2
|
+
|
|
3
|
+
_browser-window chrome wrapper for screenshots_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Visual browser-chrome wrapper.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Marketing screenshots, demo previews.
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
### Browser mockup with background color
|
|
16
|
+
|
|
17
|
+
Source: `playground/components/mockup-browser/browser-mockup-with-background-color.html`
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<div class="mockup-browser border border-base-300 w-full">
|
|
21
|
+
<div class="mockup-browser-toolbar">
|
|
22
|
+
<div class="input">https://daisyui.com</div>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="grid place-content-center h-80">Hello!</div>
|
|
25
|
+
</div>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Browser mockup with border
|
|
29
|
+
|
|
30
|
+
Source: `playground/components/mockup-browser/browser-mockup-with-border.html`
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<div class="mockup-browser border-base-300 border w-full">
|
|
34
|
+
<div class="mockup-browser-toolbar">
|
|
35
|
+
<div class="input">https://daisyui.com</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="grid place-content-center border-t border-base-300 h-80">Hello!</div>
|
|
38
|
+
</div>
|
|
39
|
+
```
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# mockup-code
|
|
2
|
+
|
|
3
|
+
_terminal/code-block visual_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Visual code-block / terminal frame with optional line prefix and highlighted line.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Showing code snippets in a styled frame.
|
|
12
|
+
|
|
13
|
+
## Core classes
|
|
14
|
+
|
|
15
|
+
`mockup-code`.
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
### Highlighted line
|
|
20
|
+
|
|
21
|
+
Source: `playground/components/mockup-code/highlighted-line.html`
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<div class="mockup-code w-full">
|
|
25
|
+
<pre data-prefix="1"><code>npm i daisyui</code></pre>
|
|
26
|
+
<pre data-prefix="2"><code>installing...</code></pre>
|
|
27
|
+
<pre data-prefix="3" class="bg-warning text-warning-content"><code>Error!</code></pre>
|
|
28
|
+
</div>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Long line will scroll
|
|
32
|
+
|
|
33
|
+
Source: `playground/components/mockup-code/long-line-will-scroll.html`
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<div class="mockup-code w-full">
|
|
37
|
+
<pre data-prefix="~"><code>Magnam dolore beatae necessitatibus nemopsum itaque sit. Et porro quae qui et et dolore ratione.</code></pre>
|
|
38
|
+
</div>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Mockup code with line prefix
|
|
42
|
+
|
|
43
|
+
Source: `playground/components/mockup-code/mockup-code-with-line-prefix.html`
|
|
44
|
+
|
|
45
|
+
```html
|
|
46
|
+
<div class="mockup-code w-full">
|
|
47
|
+
<pre data-prefix="$"><code>npm i daisyui</code></pre>
|
|
48
|
+
</div>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Multi line
|
|
52
|
+
|
|
53
|
+
Source: `playground/components/mockup-code/multi-line.html`
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<div class="mockup-code w-full">
|
|
57
|
+
<pre data-prefix="$"><code>npm i daisyui</code></pre>
|
|
58
|
+
<pre data-prefix=">" class="text-warning"><code>installing...</code></pre>
|
|
59
|
+
<pre data-prefix=">" class="text-success"><code>Done!</code></pre>
|
|
60
|
+
</div>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### With color
|
|
64
|
+
|
|
65
|
+
Source: `playground/components/mockup-code/with-color.html`
|
|
66
|
+
|
|
67
|
+
```html
|
|
68
|
+
<div class="mockup-code bg-primary text-primary-content w-full">
|
|
69
|
+
<pre><code>can be any color!</code></pre>
|
|
70
|
+
</div>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Without prefix
|
|
74
|
+
|
|
75
|
+
Source: `playground/components/mockup-code/without-prefix.html`
|
|
76
|
+
|
|
77
|
+
```html
|
|
78
|
+
<div class="mockup-code w-full">
|
|
79
|
+
<pre><code>without prefix</code></pre>
|
|
80
|
+
</div>
|
|
81
|
+
```
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# mockup-phone
|
|
2
|
+
|
|
3
|
+
_phone-frame wrapper for screenshots_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Visual phone-frame wrapper.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Marketing screenshots showing mobile layouts.
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
### Iphone mockup
|
|
16
|
+
|
|
17
|
+
Source: `playground/components/mockup-phone/iphone-mockup.html`
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<div class="mockup-phone">
|
|
21
|
+
<div class="mockup-phone-camera"></div>
|
|
22
|
+
<div class="mockup-phone-display text-white grid place-content-center bg-neutral-900">
|
|
23
|
+
It's Glowtime.
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### With color and wallpaper
|
|
29
|
+
|
|
30
|
+
Source: `playground/components/mockup-phone/with-color-and-wallpaper.html`
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<div class="mockup-phone border-[#ff8938]">
|
|
34
|
+
<div class="mockup-phone-camera"></div>
|
|
35
|
+
<div class="mockup-phone-display">
|
|
36
|
+
<img alt="wallpaper" src="https://img.daisyui.com/images/stock/453966.webp" />
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
```
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# mockup-window
|
|
2
|
+
|
|
3
|
+
_OS-window chrome wrapper for screenshots_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Visual desktop-window chrome.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Marketing screenshots, demo previews of desktop UIs.
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
### Window mockup with background color
|
|
16
|
+
|
|
17
|
+
Source: `playground/components/mockup-window/window-mockup-with-background-color.html`
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<div class="mockup-window bg-base-100 border border-base-300 w-full">
|
|
21
|
+
<div class="grid place-content-center h-80">Hello!</div>
|
|
22
|
+
</div>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Window mockup with border
|
|
26
|
+
|
|
27
|
+
Source: `playground/components/mockup-window/window-mockup-with-border.html`
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<div class="mockup-window border border-base-300 w-full">
|
|
31
|
+
<div class="grid place-content-center border-t border-base-300 h-80">Hello!</div>
|
|
32
|
+
</div>
|
|
33
|
+
```
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# modal
|
|
2
|
+
|
|
3
|
+
_dialog / pop-up (native `<dialog>` or checkbox-driven)_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Pop-up dialog. Preferred form is the native `<dialog>` variant; legacy variants use a hidden checkbox or anchor link.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Confirmations, focused tasks that interrupt the page flow.
|
|
12
|
+
- For non-blocking notifications, use **toast** or **alert**.
|
|
13
|
+
- For lighter inline reveals, use **dropdown**.
|
|
14
|
+
|
|
15
|
+
## Core classes
|
|
16
|
+
|
|
17
|
+
`modal`; positioning `modal-top|middle|bottom`; inner `modal-box`, `modal-action`, `modal-backdrop`; helper `modal-open`.
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
### Dialog modal closes when clicked outside
|
|
22
|
+
|
|
23
|
+
Source: `playground/components/modal/dialog-modal-closes-when-clicked-outside.html`
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<!-- Open the modal using ID.showModal() method -->
|
|
27
|
+
<button class="btn" onclick="my_modal_2.showModal()">open modal</button>
|
|
28
|
+
<dialog id="my_modal_2" class="modal">
|
|
29
|
+
<div class="modal-box">
|
|
30
|
+
<h3 class="text-lg font-bold">Hello!</h3>
|
|
31
|
+
<p class="py-4">Press ESC key or click outside to close</p>
|
|
32
|
+
</div>
|
|
33
|
+
<form method="dialog" class="modal-backdrop">
|
|
34
|
+
<button>close</button>
|
|
35
|
+
</form>
|
|
36
|
+
</dialog>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Dialog modal with a close button at corner
|
|
40
|
+
|
|
41
|
+
Source: `playground/components/modal/dialog-modal-with-a-close-button-at-corner.html`
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
<!-- You can open the modal using ID.showModal() method -->
|
|
45
|
+
<button class="btn" onclick="my_modal_3.showModal()">open modal</button>
|
|
46
|
+
<dialog id="my_modal_3" class="modal">
|
|
47
|
+
<div class="modal-box">
|
|
48
|
+
<form method="dialog">
|
|
49
|
+
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
|
|
50
|
+
</form>
|
|
51
|
+
<h3 class="text-lg font-bold">Hello!</h3>
|
|
52
|
+
<p class="py-4">Press ESC key or click on ✕ button to close</p>
|
|
53
|
+
</div>
|
|
54
|
+
</dialog>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Dialog modal with custom width
|
|
58
|
+
|
|
59
|
+
Source: `playground/components/modal/dialog-modal-with-custom-width.html`
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
<!-- You can open the modal using ID.showModal() method -->
|
|
63
|
+
<button class="btn" onclick="my_modal_4.showModal()">open modal</button>
|
|
64
|
+
<dialog id="my_modal_4" class="modal">
|
|
65
|
+
<div class="modal-box w-11/12 max-w-5xl">
|
|
66
|
+
<h3 class="text-lg font-bold">Hello!</h3>
|
|
67
|
+
<p class="py-4">Click the button below to close</p>
|
|
68
|
+
<div class="modal-action">
|
|
69
|
+
<form method="dialog">
|
|
70
|
+
<!-- if there is a button, it will close the modal -->
|
|
71
|
+
<button class="btn">Close</button>
|
|
72
|
+
</form>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</dialog>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Dialog modal
|
|
79
|
+
|
|
80
|
+
Source: `playground/components/modal/dialog-modal.html`
|
|
81
|
+
|
|
82
|
+
```html
|
|
83
|
+
<!-- Open the modal using ID.showModal() method -->
|
|
84
|
+
<button class="btn" onclick="my_modal_1.showModal()">open modal</button>
|
|
85
|
+
<dialog id="my_modal_1" class="modal">
|
|
86
|
+
<div class="modal-box">
|
|
87
|
+
<h3 class="text-lg font-bold">Hello!</h3>
|
|
88
|
+
<p class="py-4">Press ESC key or click the button below to close</p>
|
|
89
|
+
<div class="modal-action">
|
|
90
|
+
<form method="dialog">
|
|
91
|
+
<!-- if there is a button in form, it will close the modal -->
|
|
92
|
+
<button class="btn">Close</button>
|
|
93
|
+
</form>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</dialog>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Modal that closes when clicked outside
|
|
100
|
+
|
|
101
|
+
Source: `playground/components/modal/modal-that-closes-when-clicked-outside.html`
|
|
102
|
+
|
|
103
|
+
```html
|
|
104
|
+
<!-- The button to open modal -->
|
|
105
|
+
<label for="my_modal_7" class="btn">open modal</label>
|
|
106
|
+
|
|
107
|
+
<!-- Put this part before </body> tag -->
|
|
108
|
+
<input type="checkbox" id="my_modal_7" class="modal-toggle" />
|
|
109
|
+
<div class="modal" role="dialog">
|
|
110
|
+
<div class="modal-box">
|
|
111
|
+
<h3 class="text-lg font-bold">Hello!</h3>
|
|
112
|
+
<p class="py-4">This modal works with a hidden checkbox!</p>
|
|
113
|
+
</div>
|
|
114
|
+
<label class="modal-backdrop" for="my_modal_7">Close</label>
|
|
115
|
+
</div>
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Modal using anchor link
|
|
119
|
+
|
|
120
|
+
Source: `playground/components/modal/modal-using-anchor-link.html`
|
|
121
|
+
|
|
122
|
+
```html
|
|
123
|
+
<!-- The button to open modal -->
|
|
124
|
+
<a href="#my_modal_8" class="btn">open modal</a>
|
|
125
|
+
|
|
126
|
+
<!-- Put this part before </body> tag -->
|
|
127
|
+
<div class="modal" role="dialog" id="my_modal_8">
|
|
128
|
+
<div class="modal-box">
|
|
129
|
+
<h3 class="text-lg font-bold">Hello!</h3>
|
|
130
|
+
<p class="py-4">This modal works with anchor links</p>
|
|
131
|
+
<div class="modal-action">
|
|
132
|
+
<a href="#" class="btn">Yay!</a>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Modal using checkbox
|
|
139
|
+
|
|
140
|
+
Source: `playground/components/modal/modal-using-checkbox.html`
|
|
141
|
+
|
|
142
|
+
```html
|
|
143
|
+
<!-- The button to open modal -->
|
|
144
|
+
<label for="my_modal_6" class="btn">open modal</label>
|
|
145
|
+
|
|
146
|
+
<!-- Put this part before </body> tag -->
|
|
147
|
+
<input type="checkbox" id="my_modal_6" class="modal-toggle" />
|
|
148
|
+
<div class="modal" role="dialog">
|
|
149
|
+
<div class="modal-box">
|
|
150
|
+
<h3 class="text-lg font-bold">Hello!</h3>
|
|
151
|
+
<p class="py-4">This modal works with a hidden checkbox!</p>
|
|
152
|
+
<div class="modal-action">
|
|
153
|
+
<label for="my_modal_6" class="btn">Close!</label>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Responsive
|
|
160
|
+
|
|
161
|
+
Source: `playground/components/modal/responsive.html`
|
|
162
|
+
|
|
163
|
+
```html
|
|
164
|
+
<!-- Open the modal using ID.showModal() method -->
|
|
165
|
+
<button class="btn" onclick="my_modal_5.showModal()">open modal</button>
|
|
166
|
+
<dialog id="my_modal_5" class="modal modal-bottom sm:modal-middle">
|
|
167
|
+
<div class="modal-box">
|
|
168
|
+
<h3 class="text-lg font-bold">Hello!</h3>
|
|
169
|
+
<p class="py-4">Press ESC key or click the button below to close</p>
|
|
170
|
+
<div class="modal-action">
|
|
171
|
+
<form method="dialog">
|
|
172
|
+
<!-- if there is a button in form, it will close the modal -->
|
|
173
|
+
<button class="btn">Close</button>
|
|
174
|
+
</form>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
</dialog>
|
|
178
|
+
```
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
# navbar
|
|
2
|
+
|
|
3
|
+
_top navigation bar with start/center/end slots_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Top navigation bar with `navbar-start`, `navbar-center`, `navbar-end` slots.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Top-of-page navigation.
|
|
12
|
+
- For mobile-style bottom nav, use **dock**.
|
|
13
|
+
|
|
14
|
+
## Examples
|
|
15
|
+
|
|
16
|
+
### Navbar with colors
|
|
17
|
+
|
|
18
|
+
Source: `playground/components/navbar/navbar-with-colors.html`
|
|
19
|
+
|
|
20
|
+
```html
|
|
21
|
+
<div class="navbar bg-neutral text-neutral-content">
|
|
22
|
+
<button class="btn btn-ghost text-xl">daisyUI</button>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<div class="navbar bg-base-300">
|
|
26
|
+
<button class="btn btn-ghost text-xl">daisyUI</button>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div class="navbar bg-primary text-primary-content">
|
|
30
|
+
<button class="btn btn-ghost text-xl">daisyUI</button>
|
|
31
|
+
</div>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Navbar with dropdown center logo and icon
|
|
35
|
+
|
|
36
|
+
Source: `playground/components/navbar/navbar-with-dropdown-center-logo-and-icon.html`
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<div class="navbar bg-base-100 shadow-sm">
|
|
40
|
+
<div class="navbar-start">
|
|
41
|
+
<div class="dropdown">
|
|
42
|
+
<div tabindex="0" role="button" class="btn btn-ghost btn-circle">
|
|
43
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h7" /> </svg>
|
|
44
|
+
</div>
|
|
45
|
+
<ul
|
|
46
|
+
tabindex="-1"
|
|
47
|
+
class="menu menu-sm dropdown-content bg-base-100 rounded-box z-1 mt-3 w-52 p-2 shadow">
|
|
48
|
+
<li><a>Homepage</a></li>
|
|
49
|
+
<li><a>Portfolio</a></li>
|
|
50
|
+
<li><a>About</a></li>
|
|
51
|
+
</ul>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="navbar-center">
|
|
55
|
+
<a class="btn btn-ghost text-xl">daisyUI</a>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="navbar-end">
|
|
58
|
+
<button class="btn btn-ghost btn-circle">
|
|
59
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /> </svg>
|
|
60
|
+
</button>
|
|
61
|
+
<button class="btn btn-ghost btn-circle">
|
|
62
|
+
<div class="indicator">
|
|
63
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" /> </svg>
|
|
64
|
+
<span class="badge badge-xs badge-primary indicator-item"></span>
|
|
65
|
+
</div>
|
|
66
|
+
</button>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Navbar with icon at start and end
|
|
72
|
+
|
|
73
|
+
Source: `playground/components/navbar/navbar-with-icon-at-start-and-end.html`
|
|
74
|
+
|
|
75
|
+
```html
|
|
76
|
+
<div class="navbar bg-base-100 shadow-sm">
|
|
77
|
+
<div class="flex-none">
|
|
78
|
+
<button class="btn btn-square btn-ghost">
|
|
79
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="inline-block h-5 w-5 stroke-current"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path> </svg>
|
|
80
|
+
</button>
|
|
81
|
+
</div>
|
|
82
|
+
<div class="flex-1">
|
|
83
|
+
<a class="btn btn-ghost text-xl">daisyUI</a>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="flex-none">
|
|
86
|
+
<button class="btn btn-square btn-ghost">
|
|
87
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="inline-block h-5 w-5 stroke-current"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"></path> </svg>
|
|
88
|
+
</button>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Navbar with icon indicator and dropdown
|
|
94
|
+
|
|
95
|
+
Source: `playground/components/navbar/navbar-with-icon-indicator-and-dropdown.html`
|
|
96
|
+
|
|
97
|
+
```html
|
|
98
|
+
<div class="navbar bg-base-100 shadow-sm">
|
|
99
|
+
<div class="flex-1">
|
|
100
|
+
<a class="btn btn-ghost text-xl">daisyUI</a>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="flex-none">
|
|
103
|
+
<div class="dropdown dropdown-end">
|
|
104
|
+
<div tabindex="0" role="button" class="btn btn-ghost btn-circle">
|
|
105
|
+
<div class="indicator">
|
|
106
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z" /> </svg>
|
|
107
|
+
<span class="badge badge-sm indicator-item">8</span>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
<div
|
|
111
|
+
tabindex="0"
|
|
112
|
+
class="card card-compact dropdown-content bg-base-100 z-1 mt-3 w-52 shadow">
|
|
113
|
+
<div class="card-body">
|
|
114
|
+
<span class="text-lg font-bold">8 Items</span>
|
|
115
|
+
<span class="text-info">Subtotal: $999</span>
|
|
116
|
+
<div class="card-actions">
|
|
117
|
+
<button class="btn btn-primary btn-block">View cart</button>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="dropdown dropdown-end">
|
|
123
|
+
<div tabindex="0" role="button" class="btn btn-ghost btn-circle avatar">
|
|
124
|
+
<div class="w-10 rounded-full">
|
|
125
|
+
<img
|
|
126
|
+
alt="Tailwind CSS Navbar component"
|
|
127
|
+
src="https://img.daisyui.com/images/stock/photo-1534528741775-53994a69daeb.webp" />
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
<ul
|
|
131
|
+
tabindex="-1"
|
|
132
|
+
class="menu menu-sm dropdown-content bg-base-100 rounded-box z-1 mt-3 w-52 p-2 shadow">
|
|
133
|
+
<li>
|
|
134
|
+
<a class="justify-between">
|
|
135
|
+
Profile
|
|
136
|
+
<span class="badge">New</span>
|
|
137
|
+
</a>
|
|
138
|
+
</li>
|
|
139
|
+
<li><a>Settings</a></li>
|
|
140
|
+
<li><a>Logout</a></li>
|
|
141
|
+
</ul>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Navbar with menu and submenu
|
|
148
|
+
|
|
149
|
+
Source: `playground/components/navbar/navbar-with-menu-and-submenu.html`
|
|
150
|
+
|
|
151
|
+
```html
|
|
152
|
+
<div class="navbar bg-base-100 shadow-sm">
|
|
153
|
+
<div class="flex-1">
|
|
154
|
+
<a class="btn btn-ghost text-xl">daisyUI</a>
|
|
155
|
+
</div>
|
|
156
|
+
<div class="flex-none">
|
|
157
|
+
<ul class="menu menu-horizontal px-1">
|
|
158
|
+
<li><a>Link</a></li>
|
|
159
|
+
<li>
|
|
160
|
+
<details>
|
|
161
|
+
<summary>Parent</summary>
|
|
162
|
+
<ul class="bg-base-100 rounded-t-none p-2">
|
|
163
|
+
<li><a>Link 1</a></li>
|
|
164
|
+
<li><a>Link 2</a></li>
|
|
165
|
+
</ul>
|
|
166
|
+
</details>
|
|
167
|
+
</li>
|
|
168
|
+
</ul>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Navbar with search input and dropdown
|
|
174
|
+
|
|
175
|
+
Source: `playground/components/navbar/navbar-with-search-input-and-dropdown.html`
|
|
176
|
+
|
|
177
|
+
```html
|
|
178
|
+
<div class="navbar bg-base-100 shadow-sm">
|
|
179
|
+
<div class="flex-1">
|
|
180
|
+
<a class="btn btn-ghost text-xl">daisyUI</a>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="flex gap-2">
|
|
183
|
+
<input type="text" placeholder="Search" class="input input-bordered w-24 md:w-auto" />
|
|
184
|
+
<div class="dropdown dropdown-end">
|
|
185
|
+
<div tabindex="0" role="button" class="btn btn-ghost btn-circle avatar">
|
|
186
|
+
<div class="w-10 rounded-full">
|
|
187
|
+
<img
|
|
188
|
+
alt="Tailwind CSS Navbar component"
|
|
189
|
+
src="https://img.daisyui.com/images/stock/photo-1534528741775-53994a69daeb.webp" />
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
<ul
|
|
193
|
+
tabindex="-1"
|
|
194
|
+
class="menu menu-sm dropdown-content bg-base-100 rounded-box z-1 mt-3 w-52 p-2 shadow">
|
|
195
|
+
<li>
|
|
196
|
+
<a class="justify-between">
|
|
197
|
+
Profile
|
|
198
|
+
<span class="badge">New</span>
|
|
199
|
+
</a>
|
|
200
|
+
</li>
|
|
201
|
+
<li><a>Settings</a></li>
|
|
202
|
+
<li><a>Logout</a></li>
|
|
203
|
+
</ul>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### Navbar with title and icon
|
|
210
|
+
|
|
211
|
+
Source: `playground/components/navbar/navbar-with-title-and-icon.html`
|
|
212
|
+
|
|
213
|
+
```html
|
|
214
|
+
<div class="navbar bg-base-100 shadow-sm">
|
|
215
|
+
<div class="flex-1">
|
|
216
|
+
<a class="btn btn-ghost text-xl">daisyUI</a>
|
|
217
|
+
</div>
|
|
218
|
+
<div class="flex-none">
|
|
219
|
+
<button class="btn btn-square btn-ghost">
|
|
220
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="inline-block h-5 w-5 stroke-current"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"></path> </svg>
|
|
221
|
+
</button>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Navbar with title only
|
|
227
|
+
|
|
228
|
+
Source: `playground/components/navbar/navbar-with-title-only.html`
|
|
229
|
+
|
|
230
|
+
```html
|
|
231
|
+
<div class="navbar bg-base-100 shadow-sm">
|
|
232
|
+
<a class="btn btn-ghost text-xl">daisyUI</a>
|
|
233
|
+
</div>
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Responsive dropdown menu on small screen center menu on large screen
|
|
237
|
+
|
|
238
|
+
Source: `playground/components/navbar/responsive-dropdown-menu-on-small-screen-center-menu-on-large-screen.html`
|
|
239
|
+
|
|
240
|
+
```html
|
|
241
|
+
<div class="navbar bg-base-100 shadow-sm">
|
|
242
|
+
<div class="navbar-start">
|
|
243
|
+
<div class="dropdown">
|
|
244
|
+
<div tabindex="0" role="button" class="btn btn-ghost lg:hidden">
|
|
245
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h8m-8 6h16" /> </svg>
|
|
246
|
+
</div>
|
|
247
|
+
<ul
|
|
248
|
+
tabindex="-1"
|
|
249
|
+
class="menu menu-sm dropdown-content bg-base-100 rounded-box z-1 mt-3 w-52 p-2 shadow">
|
|
250
|
+
<li><a>Item 1</a></li>
|
|
251
|
+
<li>
|
|
252
|
+
<a>Parent</a>
|
|
253
|
+
<ul class="p-2">
|
|
254
|
+
<li><a>Submenu 1</a></li>
|
|
255
|
+
<li><a>Submenu 2</a></li>
|
|
256
|
+
</ul>
|
|
257
|
+
</li>
|
|
258
|
+
<li><a>Item 3</a></li>
|
|
259
|
+
</ul>
|
|
260
|
+
</div>
|
|
261
|
+
<a class="btn btn-ghost text-xl">daisyUI</a>
|
|
262
|
+
</div>
|
|
263
|
+
<div class="navbar-center hidden lg:flex">
|
|
264
|
+
<ul class="menu menu-horizontal px-1">
|
|
265
|
+
<li><a>Item 1</a></li>
|
|
266
|
+
<li>
|
|
267
|
+
<details>
|
|
268
|
+
<summary>Parent</summary>
|
|
269
|
+
<ul class="p-2 bg-base-100 w-40 z-1">
|
|
270
|
+
<li><a>Submenu 1</a></li>
|
|
271
|
+
<li><a>Submenu 2</a></li>
|
|
272
|
+
</ul>
|
|
273
|
+
</details>
|
|
274
|
+
</li>
|
|
275
|
+
<li><a>Item 3</a></li>
|
|
276
|
+
</ul>
|
|
277
|
+
</div>
|
|
278
|
+
<div class="navbar-end">
|
|
279
|
+
<a class="btn">Button</a>
|
|
280
|
+
</div>
|
|
281
|
+
</div>
|
|
282
|
+
```
|