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,135 @@
|
|
|
1
|
+
# hero
|
|
2
|
+
|
|
3
|
+
_full-width banner section (centered or with figure)_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Full-width banner section, optionally with a figure beside the text or an overlay image.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Marketing landing pages, top-of-page banners.
|
|
12
|
+
|
|
13
|
+
## Core classes
|
|
14
|
+
|
|
15
|
+
`hero`; inner `hero-content`, `hero-overlay`.
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
### Centered hero
|
|
20
|
+
|
|
21
|
+
Source: `playground/components/hero/centered-hero.html`
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<div class="hero bg-base-200 min-h-screen">
|
|
25
|
+
<div class="hero-content text-center">
|
|
26
|
+
<div class="max-w-md">
|
|
27
|
+
<h1 class="text-5xl font-bold">Hello there</h1>
|
|
28
|
+
<p class="py-6">
|
|
29
|
+
Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem
|
|
30
|
+
quasi. In deleniti eaque aut repudiandae et a id nisi.
|
|
31
|
+
</p>
|
|
32
|
+
<button class="btn btn-primary">Get Started</button>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Hero with figure but reverse order
|
|
39
|
+
|
|
40
|
+
Source: `playground/components/hero/hero-with-figure-but-reverse-order.html`
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<div class="hero bg-base-200 min-h-screen">
|
|
44
|
+
<div class="hero-content flex-col lg:flex-row-reverse">
|
|
45
|
+
<img
|
|
46
|
+
src="https://img.daisyui.com/images/stock/photo-1635805737707-575885ab0820.webp"
|
|
47
|
+
class="max-w-sm rounded-lg shadow-2xl"
|
|
48
|
+
/>
|
|
49
|
+
<div>
|
|
50
|
+
<h1 class="text-5xl font-bold">Box Office News!</h1>
|
|
51
|
+
<p class="py-6">
|
|
52
|
+
Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem
|
|
53
|
+
quasi. In deleniti eaque aut repudiandae et a id nisi.
|
|
54
|
+
</p>
|
|
55
|
+
<button class="btn btn-primary">Get Started</button>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Hero with figure
|
|
62
|
+
|
|
63
|
+
Source: `playground/components/hero/hero-with-figure.html`
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<div class="hero bg-base-200 min-h-screen">
|
|
67
|
+
<div class="hero-content flex-col lg:flex-row">
|
|
68
|
+
<img
|
|
69
|
+
src="https://img.daisyui.com/images/stock/photo-1635805737707-575885ab0820.webp"
|
|
70
|
+
class="max-w-sm rounded-lg shadow-2xl"
|
|
71
|
+
/>
|
|
72
|
+
<div>
|
|
73
|
+
<h1 class="text-5xl font-bold">Box Office News!</h1>
|
|
74
|
+
<p class="py-6">
|
|
75
|
+
Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem
|
|
76
|
+
quasi. In deleniti eaque aut repudiandae et a id nisi.
|
|
77
|
+
</p>
|
|
78
|
+
<button class="btn btn-primary">Get Started</button>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Hero with form
|
|
85
|
+
|
|
86
|
+
Source: `playground/components/hero/hero-with-form.html`
|
|
87
|
+
|
|
88
|
+
```html
|
|
89
|
+
<div class="hero bg-base-200 min-h-screen">
|
|
90
|
+
<div class="hero-content flex-col lg:flex-row-reverse">
|
|
91
|
+
<div class="text-center lg:text-left">
|
|
92
|
+
<h1 class="text-5xl font-bold">Login now!</h1>
|
|
93
|
+
<p class="py-6">
|
|
94
|
+
Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem
|
|
95
|
+
quasi. In deleniti eaque aut repudiandae et a id nisi.
|
|
96
|
+
</p>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="card bg-base-100 w-full max-w-sm shrink-0 shadow-2xl">
|
|
99
|
+
<div class="card-body">
|
|
100
|
+
<fieldset class="fieldset">
|
|
101
|
+
<label class="label">Email</label>
|
|
102
|
+
<input type="email" class="input" placeholder="Email" />
|
|
103
|
+
<label class="label">Password</label>
|
|
104
|
+
<input type="password" class="input" placeholder="Password" />
|
|
105
|
+
<div><a class="link link-hover">Forgot password?</a></div>
|
|
106
|
+
<button class="btn btn-neutral mt-4">Login</button>
|
|
107
|
+
</fieldset>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Hero with overlay image
|
|
115
|
+
|
|
116
|
+
Source: `playground/components/hero/hero-with-overlay-image.html`
|
|
117
|
+
|
|
118
|
+
```html
|
|
119
|
+
<div
|
|
120
|
+
class="hero min-h-screen"
|
|
121
|
+
style="background-image: url(https://img.daisyui.com/images/stock/photo-1507358522600-9f71e620c44e.webp);"
|
|
122
|
+
>
|
|
123
|
+
<div class="hero-overlay"></div>
|
|
124
|
+
<div class="hero-content text-neutral-content text-center">
|
|
125
|
+
<div class="max-w-md">
|
|
126
|
+
<h1 class="mb-5 text-5xl font-bold">Hello there</h1>
|
|
127
|
+
<p class="mb-5">
|
|
128
|
+
Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem
|
|
129
|
+
quasi. In deleniti eaque aut repudiandae et a id nisi.
|
|
130
|
+
</p>
|
|
131
|
+
<button class="btn btn-primary">Get Started</button>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
```
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# hover-3d
|
|
2
|
+
|
|
3
|
+
_3D tilt effect on hover (cards / images)_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
CSS-only 3D tilt-on-hover for cards and images.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Showcase product cards, portfolio tiles.
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
### 3d card hover effect
|
|
16
|
+
|
|
17
|
+
Source: `playground/components/hover-3d/3d-card-hover-effect.html`
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<a href="#" class="hover-3d my-12 mx-2 cursor-pointer">
|
|
21
|
+
|
|
22
|
+
<!-- content -->
|
|
23
|
+
<div class="card w-96 bg-black text-white bg-[radial-gradient(circle_at_bottom_left,#ffffff04_35%,transparent_36%),radial-gradient(circle_at_top_right,#ffffff04_35%,transparent_36%)] bg-size-[4.95em_4.95em]">
|
|
24
|
+
<div class="card-body">
|
|
25
|
+
<div class="flex justify-between mb-10">
|
|
26
|
+
<div class="font-bold">BANK OF LATVERIA</div>
|
|
27
|
+
<div class="text-5xl opacity-10">❁</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="text-lg mb-4 opacity-40">0210 8820 1150 0222</div>
|
|
30
|
+
<div class="flex justify-between">
|
|
31
|
+
<div>
|
|
32
|
+
<div class="text-xs opacity-20">CARD HOLDER</div>
|
|
33
|
+
<div>VICTOR VON D.</div>
|
|
34
|
+
</div>
|
|
35
|
+
<div>
|
|
36
|
+
<div class="text-xs opacity-20">EXPIRES</div>
|
|
37
|
+
<div>29/08</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<!-- 8 empty divs needed for the 3D effect -->
|
|
44
|
+
<div></div>
|
|
45
|
+
<div></div>
|
|
46
|
+
<div></div>
|
|
47
|
+
<div></div>
|
|
48
|
+
<div></div>
|
|
49
|
+
<div></div>
|
|
50
|
+
<div></div>
|
|
51
|
+
<div></div>
|
|
52
|
+
</a>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### 3d hover effect for image gallery
|
|
56
|
+
|
|
57
|
+
Source: `playground/components/hover-3d/3d-hover-effect-for-image-gallery.html`
|
|
58
|
+
|
|
59
|
+
```html
|
|
60
|
+
<div class="hover-3d">
|
|
61
|
+
<!-- content -->
|
|
62
|
+
<figure class="w-60 rounded-2xl">
|
|
63
|
+
<img src="https://img.daisyui.com/images/stock/card-1.webp?x" alt="Tailwind CSS 3D card" />
|
|
64
|
+
</figure>
|
|
65
|
+
<!-- 8 empty divs needed for the 3D effect -->
|
|
66
|
+
<div></div>
|
|
67
|
+
<div></div>
|
|
68
|
+
<div></div>
|
|
69
|
+
<div></div>
|
|
70
|
+
<div></div>
|
|
71
|
+
<div></div>
|
|
72
|
+
<div></div>
|
|
73
|
+
<div></div>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div class="hover-3d">
|
|
77
|
+
<!-- content -->
|
|
78
|
+
<figure class="w-60 rounded-2xl">
|
|
79
|
+
<img src="https://img.daisyui.com/images/stock/card-2.webp?x" alt="Tailwind CSS 3D hover" />
|
|
80
|
+
</figure>
|
|
81
|
+
<!-- 8 empty divs needed for the 3D effect -->
|
|
82
|
+
<div></div>
|
|
83
|
+
<div></div>
|
|
84
|
+
<div></div>
|
|
85
|
+
<div></div>
|
|
86
|
+
<div></div>
|
|
87
|
+
<div></div>
|
|
88
|
+
<div></div>
|
|
89
|
+
<div></div>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<div class="hover-3d">
|
|
93
|
+
<!-- content -->
|
|
94
|
+
<figure class="w-60 rounded-2xl">
|
|
95
|
+
<img src="https://img.daisyui.com/images/stock/card-3.webp?x" alt="Tailwind CSS 3D hover" />
|
|
96
|
+
</figure>
|
|
97
|
+
<!-- 8 empty divs needed for the 3D effect -->
|
|
98
|
+
<div></div>
|
|
99
|
+
<div></div>
|
|
100
|
+
<div></div>
|
|
101
|
+
<div></div>
|
|
102
|
+
<div></div>
|
|
103
|
+
<div></div>
|
|
104
|
+
<div></div>
|
|
105
|
+
<div></div>
|
|
106
|
+
</div>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### 3d image hover effect
|
|
110
|
+
|
|
111
|
+
Source: `playground/components/hover-3d/3d-image-hover-effect.html`
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<div class="hover-3d">
|
|
115
|
+
<!-- content -->
|
|
116
|
+
<figure class="max-w-100 rounded-2xl">
|
|
117
|
+
<img src="https://img.daisyui.com/images/stock/creditcard.webp" alt="3D card" />
|
|
118
|
+
</figure>
|
|
119
|
+
<!-- 8 empty divs needed for the 3D effect -->
|
|
120
|
+
<div></div>
|
|
121
|
+
<div></div>
|
|
122
|
+
<div></div>
|
|
123
|
+
<div></div>
|
|
124
|
+
<div></div>
|
|
125
|
+
<div></div>
|
|
126
|
+
<div></div>
|
|
127
|
+
<div></div>
|
|
128
|
+
</div>
|
|
129
|
+
```
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# hover-gallery
|
|
2
|
+
|
|
3
|
+
_swap images by hovering across regions_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Image gallery that swaps the displayed image based on the horizontal hover position.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Product image galleries on listing pages.
|
|
12
|
+
- For user-paced slideshows, use **carousel**.
|
|
13
|
+
|
|
14
|
+
## Examples
|
|
15
|
+
|
|
16
|
+
### Hover gallery
|
|
17
|
+
|
|
18
|
+
Source: `playground/components/hover-gallery/hover-gallery.html`
|
|
19
|
+
|
|
20
|
+
```html
|
|
21
|
+
<figure class="hover-gallery max-w-60">
|
|
22
|
+
<img src="https://img.daisyui.com/images/stock/daisyui-hat-1.webp" />
|
|
23
|
+
<img src="https://img.daisyui.com/images/stock/daisyui-hat-2.webp" />
|
|
24
|
+
<img src="https://img.daisyui.com/images/stock/daisyui-hat-3.webp" />
|
|
25
|
+
<img src="https://img.daisyui.com/images/stock/daisyui-hat-4.webp" />
|
|
26
|
+
</figure>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Hover gallery in a card
|
|
30
|
+
|
|
31
|
+
Source: `playground/components/hover-gallery/hover-gallery-in-a-card.html`
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<div class="card card-sm bg-base-200 max-w-60 shadow">
|
|
35
|
+
<figure class="hover-gallery">
|
|
36
|
+
<img src="https://img.daisyui.com/images/stock/daisyui-hat-1.webp" />
|
|
37
|
+
<img src="https://img.daisyui.com/images/stock/daisyui-hat-2.webp" />
|
|
38
|
+
<img src="https://img.daisyui.com/images/stock/daisyui-hat-3.webp" />
|
|
39
|
+
<img src="https://img.daisyui.com/images/stock/daisyui-hat-4.webp" />
|
|
40
|
+
</figure>
|
|
41
|
+
<div class="card-body">
|
|
42
|
+
<h2 class="card-title flex justify-between">
|
|
43
|
+
daisyUI Hat
|
|
44
|
+
<span class="font-normal">$25</span>
|
|
45
|
+
</h2>
|
|
46
|
+
<p>High Quality classic cap hat with stitch logo</p>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
```
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
# indicator
|
|
2
|
+
|
|
3
|
+
_wrap an element to overlay a badge / status / button at a corner_
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
Wrapper that positions a child element (typically a **badge**, **status**, or small button) at one of nine alignment points relative to its content.
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
- Notification counters on icons, presence dots on avatars, 'new' tags on cards.
|
|
12
|
+
|
|
13
|
+
## Core classes
|
|
14
|
+
|
|
15
|
+
`indicator`; child has `indicator-item` plus position `indicator-top|middle|bottom` and `indicator-start|center|end`.
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
### A button as an indicator for a card
|
|
20
|
+
|
|
21
|
+
Source: `playground/components/indicator/a-button-as-an-indicator-for-a-card.html`
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<div class="indicator">
|
|
25
|
+
<div class="indicator-item indicator-bottom">
|
|
26
|
+
<button class="btn btn-primary">Apply</button>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="card border-base-300 border shadow-sm">
|
|
29
|
+
<div class="card-body">
|
|
30
|
+
<h2 class="card-title">Job Title</h2>
|
|
31
|
+
<p>Rerum reiciendis beatae tenetur excepturi</p>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Badge as indicator
|
|
38
|
+
|
|
39
|
+
Source: `playground/components/indicator/badge-as-indicator.html`
|
|
40
|
+
|
|
41
|
+
```html
|
|
42
|
+
<div class="indicator">
|
|
43
|
+
<span class="indicator-item badge badge-primary">New</span>
|
|
44
|
+
<div class="bg-base-300 grid h-32 w-32 place-items-center">content</div>
|
|
45
|
+
</div>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### For an input
|
|
49
|
+
|
|
50
|
+
Source: `playground/components/indicator/for-an-input.html`
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<div class="indicator">
|
|
54
|
+
<span class="indicator-item badge">Required</span>
|
|
55
|
+
<input type="text" placeholder="Your email address" class="input input-bordered" />
|
|
56
|
+
</div>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### For avatar
|
|
60
|
+
|
|
61
|
+
Source: `playground/components/indicator/for-avatar.html`
|
|
62
|
+
|
|
63
|
+
```html
|
|
64
|
+
<div class="avatar indicator">
|
|
65
|
+
<span class="indicator-item badge badge-secondary">Justice</span>
|
|
66
|
+
<div class="h-20 w-20 rounded-lg">
|
|
67
|
+
<img
|
|
68
|
+
alt="Tailwind CSS examples"
|
|
69
|
+
src="https://img.daisyui.com/images/profile/demo/batperson@192.webp"
|
|
70
|
+
/>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### For button
|
|
76
|
+
|
|
77
|
+
Source: `playground/components/indicator/for-button.html`
|
|
78
|
+
|
|
79
|
+
```html
|
|
80
|
+
<div class="indicator">
|
|
81
|
+
<span class="indicator-item badge badge-secondary">12</span>
|
|
82
|
+
<button class="btn">inbox</button>
|
|
83
|
+
</div>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### For tab
|
|
87
|
+
|
|
88
|
+
Source: `playground/components/indicator/for-tab.html`
|
|
89
|
+
|
|
90
|
+
```html
|
|
91
|
+
<div class="tabs tabs-lift">
|
|
92
|
+
<a class="tab">Messages</a>
|
|
93
|
+
<a class="indicator tab tab-active">
|
|
94
|
+
Notifications
|
|
95
|
+
<span class="indicator-item badge">8</span>
|
|
96
|
+
</a>
|
|
97
|
+
<a class="tab">Requests</a>
|
|
98
|
+
</div>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### In center of an image
|
|
102
|
+
|
|
103
|
+
Source: `playground/components/indicator/in-center-of-an-image.html`
|
|
104
|
+
|
|
105
|
+
```html
|
|
106
|
+
<div class="indicator">
|
|
107
|
+
<span class="indicator-item indicator-center indicator-middle">
|
|
108
|
+
Only available for Pro users
|
|
109
|
+
</span>
|
|
110
|
+
<img
|
|
111
|
+
alt="Tailwind CSS examples"
|
|
112
|
+
src="https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
|
|
113
|
+
/>
|
|
114
|
+
</div>
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Indicator bottom indicator center
|
|
118
|
+
|
|
119
|
+
Source: `playground/components/indicator/indicator-bottom-indicator-center.html`
|
|
120
|
+
|
|
121
|
+
```html
|
|
122
|
+
<div class="indicator">
|
|
123
|
+
<span
|
|
124
|
+
class="indicator-item indicator-bottom indicator-center badge badge-secondary"
|
|
125
|
+
></span>
|
|
126
|
+
<div class="bg-base-300 grid h-32 w-32 place-items-center">content</div>
|
|
127
|
+
</div>
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Indicator bottom indicator end default
|
|
131
|
+
|
|
132
|
+
Source: `playground/components/indicator/indicator-bottom-indicator-end-default.html`
|
|
133
|
+
|
|
134
|
+
```html
|
|
135
|
+
<div class="indicator">
|
|
136
|
+
<span class="indicator-item indicator-bottom badge badge-secondary"></span>
|
|
137
|
+
<div class="bg-base-300 grid h-32 w-32 place-items-center">content</div>
|
|
138
|
+
</div>
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Indicator bottom indicator start
|
|
142
|
+
|
|
143
|
+
Source: `playground/components/indicator/indicator-bottom-indicator-start.html`
|
|
144
|
+
|
|
145
|
+
```html
|
|
146
|
+
<div class="indicator">
|
|
147
|
+
<span
|
|
148
|
+
class="indicator-item indicator-bottom indicator-start badge badge-secondary"
|
|
149
|
+
></span>
|
|
150
|
+
<div class="bg-base-300 grid h-32 w-32 place-items-center">content</div>
|
|
151
|
+
</div>
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Indicator middle indicator center
|
|
155
|
+
|
|
156
|
+
Source: `playground/components/indicator/indicator-middle-indicator-center.html`
|
|
157
|
+
|
|
158
|
+
```html
|
|
159
|
+
<div class="indicator">
|
|
160
|
+
<span
|
|
161
|
+
class="indicator-item indicator-middle indicator-center badge badge-secondary"
|
|
162
|
+
></span>
|
|
163
|
+
<div class="bg-base-300 grid h-32 w-32 place-items-center">content</div>
|
|
164
|
+
</div>
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Indicator middle indicator end default
|
|
168
|
+
|
|
169
|
+
Source: `playground/components/indicator/indicator-middle-indicator-end-default.html`
|
|
170
|
+
|
|
171
|
+
```html
|
|
172
|
+
<div class="indicator">
|
|
173
|
+
<span class="indicator-item indicator-middle badge badge-secondary"></span>
|
|
174
|
+
<div class="bg-base-300 grid h-32 w-32 place-items-center">content</div>
|
|
175
|
+
</div>
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### Indicator middle indicator start
|
|
179
|
+
|
|
180
|
+
Source: `playground/components/indicator/indicator-middle-indicator-start.html`
|
|
181
|
+
|
|
182
|
+
```html
|
|
183
|
+
<div class="indicator">
|
|
184
|
+
<span
|
|
185
|
+
class="indicator-item indicator-middle indicator-start badge badge-secondary"
|
|
186
|
+
></span>
|
|
187
|
+
<div class="bg-base-300 grid h-32 w-32 place-items-center">content</div>
|
|
188
|
+
</div>
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Indicator top default indicator center
|
|
192
|
+
|
|
193
|
+
Source: `playground/components/indicator/indicator-top-default-indicator-center.html`
|
|
194
|
+
|
|
195
|
+
```html
|
|
196
|
+
<div class="indicator">
|
|
197
|
+
<span class="indicator-item indicator-center badge badge-secondary"></span>
|
|
198
|
+
<div class="bg-base-300 grid h-32 w-32 place-items-center">content</div>
|
|
199
|
+
</div>
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Indicator top default indicator end default
|
|
203
|
+
|
|
204
|
+
Source: `playground/components/indicator/indicator-top-default-indicator-end-default.html`
|
|
205
|
+
|
|
206
|
+
```html
|
|
207
|
+
<div class="indicator">
|
|
208
|
+
<span class="indicator-item badge badge-secondary"></span>
|
|
209
|
+
<div class="bg-base-300 grid h-32 w-32 place-items-center">content</div>
|
|
210
|
+
</div>
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Indicator top default indicator start
|
|
214
|
+
|
|
215
|
+
Source: `playground/components/indicator/indicator-top-default-indicator-start.html`
|
|
216
|
+
|
|
217
|
+
```html
|
|
218
|
+
<div class="indicator">
|
|
219
|
+
<span class="indicator-item indicator-start badge badge-secondary"></span>
|
|
220
|
+
<div class="bg-base-300 grid h-32 w-32 place-items-center">content</div>
|
|
221
|
+
</div>
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Multiple indicators
|
|
225
|
+
|
|
226
|
+
Source: `playground/components/indicator/multiple-indicators.html`
|
|
227
|
+
|
|
228
|
+
```html
|
|
229
|
+
<div class="indicator">
|
|
230
|
+
<span class="indicator-item indicator-top indicator-start badge">↖︎</span>
|
|
231
|
+
<span class="indicator-item indicator-top indicator-center badge">↑</span>
|
|
232
|
+
<span class="indicator-item indicator-top indicator-end badge">↗︎</span>
|
|
233
|
+
<span class="indicator-item indicator-middle indicator-start badge">←</span>
|
|
234
|
+
<span class="indicator-item indicator-middle indicator-center badge">●</span>
|
|
235
|
+
<span class="indicator-item indicator-middle indicator-end badge">→</span>
|
|
236
|
+
<span class="indicator-item indicator-bottom indicator-start badge">↙︎</span>
|
|
237
|
+
<span class="indicator-item indicator-bottom indicator-center badge">↓</span>
|
|
238
|
+
<span class="indicator-item indicator-bottom indicator-end badge">↘︎</span>
|
|
239
|
+
<div class="bg-base-300 grid h-32 w-60 place-items-center">Box</div>
|
|
240
|
+
</div>
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### Responsive
|
|
244
|
+
|
|
245
|
+
Source: `playground/components/indicator/responsive.html`
|
|
246
|
+
|
|
247
|
+
```html
|
|
248
|
+
<div class="indicator">
|
|
249
|
+
<span
|
|
250
|
+
class="indicator-item indicator-start sm:indicator-middle md:indicator-bottom lg:indicator-center xl:indicator-end badge badge-secondary"
|
|
251
|
+
></span>
|
|
252
|
+
<div class="bg-base-300 grid h-32 w-32 place-items-center">content</div>
|
|
253
|
+
</div>
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### Status indicator
|
|
257
|
+
|
|
258
|
+
Source: `playground/components/indicator/status-indicator.html`
|
|
259
|
+
|
|
260
|
+
```html
|
|
261
|
+
<div class="indicator">
|
|
262
|
+
<span class="indicator-item status status-success"></span>
|
|
263
|
+
<div class="bg-base-300 grid h-32 w-32 place-items-center">content</div>
|
|
264
|
+
</div>
|
|
265
|
+
```
|