add AI agents files

This commit is contained in:
Benjamin Palko 2026-08-11 15:34:48 -04:00
parent 5a903af22a
commit 9b9ae5c7f5
79 changed files with 2399 additions and 23 deletions

View file

@ -0,0 +1,27 @@
### accordion
Accordion is used for showing and hiding content but only one item can stay open at a time
[accordion docs](https://daisyui.com/components/accordion/)
#### Class names
- component: `collapse`
- part: `collapse-title`, `collapse-content`
- modifier: `collapse-arrow`, `collapse-plus`, `collapse-open`, `collapse-close`
#### Syntax
```html
<div class="collapse {MODIFIER}">{CONTENT}</div>
```
where content is:
```html
<input type="radio" name="{name}" checked="{checked}" />
<div class="collapse-title">{title}</div>
<div class="collapse-content">{CONTENT}</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier class names
- Accordion uses radio inputs. All radio inputs with the same name work together and only one of them can be open at a time
- If you have more than one set of accordion items on a page, use different names for the radio inputs on each set
- Replace {name} with a unique name for the accordion group
- replace `{checked}` with `checked="checked"` if you want the accordion to be open by default

View file

@ -0,0 +1,19 @@
### alert
Alert informs users about important events
[alert docs](https://daisyui.com/components/alert/)
#### Class names
- component: `alert`
- style: `alert-outline`, `alert-dash`, `alert-soft`
- color: `alert-info`, `alert-success`, `alert-warning`, `alert-error`
- direction: `alert-vertical`, `alert-horizontal`
#### Syntax
```html
<div role="alert" class="alert {MODIFIER}">{CONTENT}</div>
```
#### Rules
- {MODIFIER} is optional and can have one of each style/color/direction class names
- Add `sm:alert-horizontal` for responsive layouts

View file

@ -0,0 +1,22 @@
### aura
Aura is a border light effect that can wrap around any component. It is a great way to add a cool, eye-catching visual effect to your components. Aura is useful for the most important button, card, or div that you want to highlight.
[aura docs](https://daisyui.com/components/aura/)
#### Class names
- component: `aura`
- style: `aura-dual`, `aura-rainbow`, `aura-holo`, `aura-gold`, `aura-silver`, `aura-glow`
- size: `aura-xs`, `aura-sm`, `aura-md`, `aura-lg`, `aura-xl`
#### Syntax
```html
<div class="aura {MODIFIER}">{CONTENT}</div>
```
#### Rules
- {MODIFIER} is optional and can have one of each style/size class names
- you can set custom colors using `text-*` color classes. For example, `text-primary` will use the primary color for the aura
- you can set custom background color using `bg-*` color classes. For example, `bg-secondary` will use the secondary color for the background of the aura
- you can set custom animation duration using `duration-*` classes. For example, `duration-1000` will set the animation duration to 1 second
- aura must have one direct child element
- aura is good for a button, or a card or a div that you want to highlight
- do not use aura for multiple elements on the same page because it can be visually overwhelming

View file

@ -0,0 +1,23 @@
### avatar
Avatars are used to show a thumbnail
[avatar docs](https://daisyui.com/components/avatar/)
#### Class names
- component: `avatar`, `avatar-group`
- modifier: `avatar-online`, `avatar-offline`, `avatar-placeholder`
#### Syntax
```html
<div class="avatar {MODIFIER}">
<div>
<img src="{image-url}" />
</div>
</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier class names
- Use `avatar-group` for containing multiple avatars
- You can set custom sizes using `w-*` and `h-*`
- You can use mask classes such as `mask-squircle`, `mask-hexagon`, `mask-triangle`

View file

@ -0,0 +1,20 @@
### badge
Badges are used to inform the user of the status of specific data
[badge docs](https://daisyui.com/components/badge/)
#### Class names
- component: `badge`
- style: `badge-outline`, `badge-dash`, `badge-soft`, `badge-ghost`
- color: `badge-neutral`, `badge-primary`, `badge-secondary`, `badge-accent`, `badge-info`, `badge-success`, `badge-warning`, `badge-error`
- size: `badge-xs`, `badge-sm`, `badge-md`, `badge-lg`, `badge-xl`
#### Syntax
```html
<span class="badge {MODIFIER}">Badge</span>
```
#### Rules
- {MODIFIER} is optional and can have one of each style/color/size class names
- Can be used inside text or buttons
- To create an empty badge, just remove the text between the span tags

View file

@ -0,0 +1,19 @@
### breadcrumbs
Breadcrumbs helps users to navigate
[breadcrumbs docs](https://daisyui.com/components/breadcrumbs/)
#### Class names
- component: `breadcrumbs`
#### Syntax
```html
<div class="breadcrumbs">
<ul><li><a>Link</a></li></ul>
</div>
```
#### Rules
- breadcrumbs only has one main class name
- Can contain icons inside the links
- If you set `max-width` or the list gets larger than the container it will scroll

View file

@ -0,0 +1,22 @@
### button
Buttons allow the user to take actions
[button docs](https://daisyui.com/components/button/)
#### Class names
- component: `btn`
- color: `btn-neutral`, `btn-primary`, `btn-secondary`, `btn-accent`, `btn-info`, `btn-success`, `btn-warning`, `btn-error`
- style: `btn-outline`, `btn-dash`, `btn-soft`, `btn-ghost`, `btn-link`
- behavior: `btn-active`, `btn-disabled`
- size: `btn-xs`, `btn-sm`, `btn-md`, `btn-lg`, `btn-xl`
- modifier: `btn-wide`, `btn-block`, `btn-square`, `btn-circle`
#### Syntax
```html
<button class="btn {MODIFIER}">Button</button>
```
#### Rules
- {MODIFIER} is optional and can have one of each color/style/behavior/size/modifier class names
- btn can be used on any html tags such as `<button>`, `<a>`, `<input>`
- btn can have an icon before or after the text
- set `tabindex="-1" role="button" aria-disabled="true"` if you want to disable the button using a class name

View file

@ -0,0 +1,57 @@
### calendar
Calendar includes styles for different calendar libraries
[calendar docs](https://daisyui.com/components/calendar/)
#### Class names
- component
- `cally (for Cally web component)`
- `react-day-picker (for the DayPicker component)`
- `vc (for Vanilla Calendar Pro)`
#### Syntax
For Cally:
```html
<calendar-date class="cally">{CONTENT}</calendar-date>
```
For React Day Picker:
```html
<DayPicker className="react-day-picker"></DayPicker>
```
For Vanilla Calendar Pro:
```html
<div id="calendar" class="vc"></div>
```
```js
import { Calendar } from "vanilla-calendar-pro"
const calendar = new Calendar("#calendar")
calendar.init()
```
Or using CDN:
```html
<script src="https://cdn.jsdelivr.net/npm/vanilla-calendar-pro/index.js" defer></script>
<div id="calendar" class="vc"></div>
<script>
document.addEventListener("DOMContentLoaded", () => {
const { Calendar } = window.VanillaCalendarPro
const calendar = new Calendar("#calendar")
calendar.init()
})
</script>
```
#### Rules
- daisyUI supports Cally, React Day Picker and Vanilla Calendar Pro

View file

@ -0,0 +1,29 @@
### card
Cards are used to group and display content
[card docs](https://daisyui.com/components/card/)
#### Class names
- component: `card`
- part: `card-title`, `card-body`, `card-actions`
- style: `card-border`, `card-dash`
- modifier: `card-side`, `image-full`
- size: `card-xs`, `card-sm`, `card-md`, `card-lg`, `card-xl`
#### Syntax
```html
<div class="card {MODIFIER}">
<figure><img src="{image-url}" alt="{alt-text}" /></figure>
<div class="card-body">
<h2 class="card-title">{title}</h2>
<p>{CONTENT}</p>
<div class="card-actions">{actions}</div>
</div>
</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier class names and one of the size class names
- `<figure>` and `<div class="card-body">` are optional
- can use `sm:card-side` for responsive layouts
- If image is placed after `card-body`, the image will be placed at the bottom

View file

@ -0,0 +1,20 @@
### carousel
Carousel show images or content in a scrollable area
[carousel docs](https://daisyui.com/components/carousel/)
#### Class names
- component: `carousel`
- part: `carousel-item`
- modifier: `carousel-start`, `carousel-center`, `carousel-end`
- direction: `carousel-horizontal`, `carousel-vertical`
#### Syntax
```html
<div class="carousel {MODIFIER}">{CONTENT}</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier/direction class names
- Content is a list of `carousel-item` divs: `<div class="carousel-item"></div>`
- To create a full-width carousel, add `w-full` to each carousel item

View file

@ -0,0 +1,25 @@
### chat
Chat bubbles are used to show one line of conversation and all its data, including the author image, author name, time, etc
[chat docs](https://daisyui.com/components/chat/)
#### Class names
- component: `chat`
- part: `chat-image`, `chat-header`, `chat-footer`, `chat-bubble`
- placement: `chat-start`, `chat-end`
- color: `chat-bubble-neutral`, `chat-bubble-primary`, `chat-bubble-secondary`, `chat-bubble-accent`, `chat-bubble-info`, `chat-bubble-success`, `chat-bubble-warning`, `chat-bubble-error`
#### Syntax
```html
<div class="chat {PLACEMENT}">
<div class="chat-image"></div>
<div class="chat-header"></div>
<div class="chat-bubble {COLOR}">Message text</div>
<div class="chat-footer"></div>
</div>
```
#### Rules
- {PLACEMENT} is required and must be either `chat-start` or `chat-end`
- {COLOR} is optional and can have one of the color class names
- To add an avatar, use `<div class="chat-image avatar">` and nest the avatar content inside

View file

@ -0,0 +1,17 @@
### checkbox
Checkboxes are used to select or deselect a value
[checkbox docs](https://daisyui.com/components/checkbox/)
#### Class names
- component: `checkbox`
- color: `checkbox-primary`, `checkbox-secondary`, `checkbox-accent`, `checkbox-neutral`, `checkbox-success`, `checkbox-warning`, `checkbox-info`, `checkbox-error`
- size: `checkbox-xs`, `checkbox-sm`, `checkbox-md`, `checkbox-lg`, `checkbox-xl`
#### Syntax
```html
<input type="checkbox" class="checkbox {MODIFIER}" />
```
#### Rules
- {MODIFIER} is optional and can have one of each color/size class names

View file

@ -0,0 +1,22 @@
### collapse
Collapse is used for showing and hiding content
[collapse docs](https://daisyui.com/components/collapse/)
#### Class names
- component: `collapse`
- part: `collapse-title`, `collapse-content`
- modifier: `collapse-arrow`, `collapse-plus`, `collapse-open`, `collapse-close`
#### Syntax
```html
<div tabindex="0" class="collapse {MODIFIER}">
<div class="collapse-title">{title}</div>
<div class="collapse-content">{CONTENT}</div>
</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier class names
- instead of `tabindex="0"`, you can use `<input type="checkbox">` as a first child
- Can also be a details/summary tag

View file

@ -0,0 +1,19 @@
### countdown
Countdown gives you a transition effect when you change a number between 0 to 999
[countdown docs](https://daisyui.com/components/countdown/)
#### Class names
- component: `countdown`
#### Syntax
```html
<span class="countdown">
<span style="--value:{number};">number</span>
</span>
```
#### Rules
- The `--value` CSS variable and text must be a number between 0 and 999
- you need to change the span text and the `--value` CSS variable using JS
- you need to add `aria-live="polite"` and `aria-label="{number}"` so screen readers can properly read changes

View file

@ -0,0 +1,20 @@
### diff
Diff component shows a side-by-side comparison of two items
[diff docs](https://daisyui.com/components/diff/)
#### Class names
- component: `diff`
- part: `diff-item-1`, `diff-item-2`, `diff-resizer`
#### Syntax
```html
<figure class="diff">
<div class="diff-item-1">{item1}</div>
<div class="diff-item-2">{item2}</div>
<div class="diff-resizer"></div>
</figure>
```
#### Rules
- To maintain aspect ratio, add `aspect-16/9` or other aspect ratio classes to `<figure class="diff">` element

View file

@ -0,0 +1,19 @@
### divider
Divider will be used to separate content vertically or horizontally
[divider docs](https://daisyui.com/components/divider/)
#### Class names
- component: `divider`
- color: `divider-neutral`, `divider-primary`, `divider-secondary`, `divider-accent`, `divider-success`, `divider-warning`, `divider-info`, `divider-error`
- direction: `divider-vertical`, `divider-horizontal`
- placement: `divider-start`, `divider-end`
#### Syntax
```html
<div class="divider {MODIFIER}">{text}</div>
```
#### Rules
- {MODIFIER} is optional and can have one of each direction/color/placement class names
- Omit text for a blank divider

View file

@ -0,0 +1,27 @@
### dock
Dock (also know as Bottom navigation or Bottom bar) is a UI element that provides navigation options to the user. Dock sticks to the bottom of the screen
[dock docs](https://daisyui.com/components/dock/)
#### Class names
- component: `dock`
- part: `dock-label`
- modifier: `dock-active`
- size: `dock-xs`, `dock-sm`, `dock-md`, `dock-lg`, `dock-xl`
#### Syntax
```html
<div class="dock {MODIFIER}">{CONTENT}</div>
```
where content is a list of buttons:
```html
<button>
<svg>{icon}</svg>
<span class="dock-label">Text</span>
</button>
```
#### Rules
- {MODIFIER} is optional and can have one of the size class names
- To make a button active, add `dock-active` class to the button
- add `<meta name="viewport" content="viewport-fit=cover">` is required for responsiveness of the dock in iOS

View file

@ -0,0 +1,98 @@
### drawer
Drawer is a grid layout that can show/hide a sidebar on the left or right side of the page
[drawer docs](https://daisyui.com/components/drawer/)
#### Class names
- component: `drawer`
- part: `drawer-toggle`, `drawer-content`, `drawer-side`, `drawer-overlay`, `drawer-button`
- placement: `drawer-end`
- modifier: `drawer-open`
- variant: `is-drawer-open:`, `is-drawer-close:`
#### Syntax
```html
<div class="drawer {MODIFIER}">
<input id="my-drawer" type="checkbox" class="drawer-toggle" />
<div class="drawer-content">{CONTENT}</div>
<div class="drawer-side">{SIDEBAR}</div>
</div>
```
where {CONTENT} can be navbar, site content, footer, etc
and {SIDEBAR} can be a menu like:
```html
<ul class="menu p-4 w-80 min-h-full bg-base-100 text-base-content">
<li><a>Item 1</a></li>
<li><a>Item 2</a></li>
</ul>
```
To open/close the drawer, use a label that points to the `drawer-toggle` input:
```html
<label for="my-drawer" class="btn drawer-button">Open/close drawer</label>
```
Example: This sidebar is always visible on large screen, can be toggled on small screen:
```html
<div class="drawer lg:drawer-open">
<input id="my-drawer-3" type="checkbox" class="drawer-toggle" />
<div class="drawer-content flex flex-col items-center justify-center">
<!-- Page content here -->
<label for="my-drawer-3" class="btn drawer-button lg:hidden">
Open drawer
</label>
</div>
<div class="drawer-side">
<label for="my-drawer-3" aria-label="close sidebar" class="drawer-overlay"></label>
<ul class="menu bg-base-200 min-h-full w-80 p-4">
<!-- Sidebar content here -->
<li><button>Sidebar Item 1</button></li>
<li><button>Sidebar Item 2</button></li>
</ul>
</div>
</div>
```
Example: This sidebar is always visible. When it's close we only see icons, when it's open we see icons and text
```html
<div class="drawer lg:drawer-open">
<input id="my-drawer-4" type="checkbox" class="drawer-toggle" />
<div class="drawer-content">
<!-- Page content here -->
</div>
<div class="drawer-side is-drawer-close:overflow-visible">
<label for="my-drawer-4" aria-label="close sidebar" class="drawer-overlay"></label>
<div class="is-drawer-close:w-14 is-drawer-open:w-64 bg-base-200 flex flex-col items-start min-h-full">
<!-- Sidebar content here -->
<ul class="menu w-full grow">
<!-- list item -->
<li>
<button class="is-drawer-close:tooltip is-drawer-close:tooltip-right" data-tip="Homepage">
{ICON_HERE}
<span class="is-drawer-close:hidden">Homepage</span>
</button>
</li>
<!-- list item -->
<li>
<button class="is-drawer-close:tooltip is-drawer-close:tooltip-right" data-tip="Settings">
{ICON_HERE}
<span class="is-drawer-close:hidden">Settings</span>
</button>
</li>
</ul>
<!-- button to open/close drawer -->
<div class="m-2 is-drawer-close:tooltip is-drawer-close:tooltip-right" data-tip="Open">
<label for="my-drawer-4" class="btn btn-ghost btn-circle drawer-button is-drawer-open:rotate-y-180">
{ICON_HERE}
</label>
</div>
</div>
</div>
</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier/placement class names
- `id` is required for the `drawer-toggle` input. change `my-drawer` to a unique id according to your needs
- `lg:drawer-open` can be used to make sidebar visible on larger screens
- `drawer-toggle` is a hidden checkbox. Use label with "for" attribute to toggle state
- if you want to open the drawer when a button is clicked, use `<label for="my-drawer" class="btn drawer-button">Open drawer</label>` where `my-drawer` is the id of the `drawer-toggle` input
- when using drawer, every page content must be inside `drawer-content` element. for example navbar, footer, etc should not be outside of `drawer`

View file

@ -0,0 +1,32 @@
### dropdown
Dropdown can open a menu or any other element when the button is clicked
[dropdown docs](https://daisyui.com/components/dropdown/)
#### Class names
- component: `dropdown`
- part: `dropdown-content`
- placement: `dropdown-start`, `dropdown-center`, `dropdown-end`, `dropdown-top`, `dropdown-bottom`, `dropdown-left`, `dropdown-right`
- modifier: `dropdown-hover`, `dropdown-open`, `dropdown-close`
#### Syntax
Using popover API
```html
<button popovertarget="{id}" style="anchor-name:--{anchor}">{button}</button>
<ul class="dropdown" popover id="{id}" style="position-anchor:--{anchor}">{CONTENT}</ul>
```
Using details and summary (only opens/closes on click)
```html
<details class="dropdown">
<summary>Button</summary>
<ul class="dropdown-content">{CONTENT}</ul>
</details>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier/placement class names
- replace `{id}` and `{anchor}` with a unique name
- The content can be any HTML element (not just `<ul>`)
- For popover API method, we don't use `dropdown-content`. Only button and a `dropdown`

View file

@ -0,0 +1,98 @@
### fab
FAB (Floating Action Button) stays in the bottom corner of screen. It includes a focusable and accessible element with button role. Clicking or focusing it shows additional buttons (known as Speed Dial buttons) in a vertical arrangement or a flower shape (quarter circle)
[fab docs](https://daisyui.com/components/fab/)
#### Class names
- component: `fab`
- part: `fab-close`, `fab-main-action`
- modifier: `fab-flower`
#### Syntax
A single FAB in the corner of screen
```html
<div class="fab">
<button class="btn btn-lg btn-circle">{IconOriginal}</button>
</div>
```
A FAB that opens a 3 other buttons in the corner of page vertically
```html
<div class="fab">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<button class="btn btn-lg btn-circle">{Icon1}</button>
<button class="btn btn-lg btn-circle">{Icon2}</button>
<button class="btn btn-lg btn-circle">{Icon3}</button>
</div>
```
A FAB that opens a 3 other buttons in the corner of page vertically and they have label text
```html
<div class="fab">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<div>{Label1}<button class="btn btn-lg btn-circle">{Icon1}</button></div>
<div>{Label2}<button class="btn btn-lg btn-circle">{Icon2}</button></div>
<div>{Label3}<button class="btn btn-lg btn-circle">{Icon3}</button></div>
</div>
```
FAB with rectangle buttons. These are not circular buttons so they can have more content.
```html
<div class="fab">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<button class="btn btn-lg">{Label1}</button>
<button class="btn btn-lg">{Label2}</button>
<button class="btn btn-lg">{Label3}</button>
</div>
```
FAB with close button. When FAB is open, the original button is replaced with a close button
```html
<div class="fab">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<div class="fab-close">Close <span class="btn btn-circle btn-lg btn-error">×</span></div>
<div>{Label1}<button class="btn btn-lg btn-circle">{Icon1}</button></div>
<div>{Label2}<button class="btn btn-lg btn-circle">{Icon2}</button></div>
<div>{Label3}<button class="btn btn-lg btn-circle">{Icon3}</button></div>
</div>
```
FAB with Main Action button. When FAB is open, the original button is replaced with a main action button
```html
<div class="fab">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<div class="fab-main-action">
{LabelMainAction}<button class="btn btn-circle btn-secondary btn-lg">{IconMainAction}</button>
</div>
<div>{Label1}<button class="btn btn-lg btn-circle">{Icon1}</button></div>
<div>{Label2}<button class="btn btn-lg btn-circle">{Icon2}</button></div>
<div>{Label3}<button class="btn btn-lg btn-circle">{Icon3}</button></div>
</div>
```
FAB Flower. It opens the buttons in a flower shape (quarter circle) arrangement instead of vertical
```html
<div class="fab fab-flower">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<button class="fab-main-action btn btn-circle btn-lg">{IconMainAction}</button>
<button class="btn btn-lg btn-circle">{Icon1}</button>
<button class="btn btn-lg btn-circle">{Icon2}</button>
<button class="btn btn-lg btn-circle">{Icon3}</button>
</div>
```
FAB Flower with tooltips. There's no space for a text label in a quarter circle, so tooltips are used to indicate the button's function
```html
<div class="fab fab-flower">
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">{IconOriginal}</div>
<button class="fab-main-action btn btn-circle btn-lg">{IconMainAction}</button>
<div class="tooltip tooltip-left" data-tip="{Label1}">
<button class="btn btn-lg btn-circle">{Icon1}</button>
</div>
<div class="tooltip tooltip-left" data-tip="{Label2}">
<button class="btn btn-lg btn-circle">{Icon2}</button>
</div>
<div class="tooltip tooltip-left" data-tip="{Label3}">
<button class="btn btn-lg btn-circle">{Icon3}</button>
</div>
</div>
```
#### Rules
- {Icon*} should be replaced with the appropriate icon for each button. SVG icons are recommended
- {IconOriginal} is the icon that we see before opening the FAB
- {IconMainAction} is the icon we see after opening the FAB
- {Icon1}, {Icon2}, {Icon3} are the icons for the additional buttons
- {Label*} is the label text for each button

View file

@ -0,0 +1,20 @@
### fieldset
Fieldset is a container for grouping related form elements. It includes fieldset-legend as a title and label as a description
[fieldset docs](https://daisyui.com/components/fieldset/)
#### Class names
- Component: `fieldset`, `label`
- Parts: `fieldset-legend`
#### Syntax
```html
<fieldset class="fieldset">
<legend class="fieldset-legend">{title}</legend>
{CONTENT}
<p class="label">{description}</p>
</fieldset>
```
#### Rules
- You can use any element as a direct child of fieldset to add form elements

View file

@ -0,0 +1,18 @@
### file-input
File Input is an input field for uploading files
[file-input docs](https://daisyui.com/components/file-input/)
#### Class Names:
- Component: `file-input`
- Style: `file-input-ghost`
- Color: `file-input-neutral`, `file-input-primary`, `file-input-secondary`, `file-input-accent`, `file-input-info`, `file-input-success`, `file-input-warning`, `file-input-error`
- Size: `file-input-xs`, `file-input-sm`, `file-input-md`, `file-input-lg`, `file-input-xl`
#### Syntax
```html
<input type="file" class="file-input {MODIFIER}" />
```
#### Rules
- {MODIFIER} is optional and can have one of each style/color/size class names

View file

@ -0,0 +1,33 @@
### filter
Filter is a group of radio buttons. Choosing one of the options will hide the others and shows a reset button next to the chosen option
[filter docs](https://daisyui.com/components/filter/)
#### Class names
- component: `filter`
- part: `filter-reset`
#### Syntax
Using HTML form
```html
<form class="filter">
<input class="btn btn-square" type="reset" value="×"/>
<input class="btn" type="radio" name="{NAME}" aria-label="Tab 1 title"/>
<input class="btn" type="radio" name="{NAME}" aria-label="Tab 2 title"/>
</form>
```
Without HTML form
```html
<div class="filter">
<input class="btn filter-reset" type="radio" name="{NAME}" aria-label="×"/>
<input class="btn" type="radio" name="{NAME}" aria-label="Tab 1 title"/>
<input class="btn" type="radio" name="{NAME}" aria-label="Tab 2 title"/>
</div>
```
#### Rules
- replace `{NAME}` with proper value, according to the context of the filter
- Each set of radio inputs must have unique `name` attributes to avoid conflicts
- Use `<form>` tag when possible and only use `<div>` if you can't use a HTML form for some reason
- Use `filter-reset` class for the reset button
- Do not check any of the radio inputs by default

View file

@ -0,0 +1,21 @@
### footer
Footer can contain logo, copyright notice, and links to other pages
[footer docs](https://daisyui.com/components/footer/)
#### Class names
- component: `footer`
- part: `footer-title`
- placement: `footer-center`
- direction: `footer-horizontal`, `footer-vertical`
#### Syntax
```html
<footer class="footer {MODIFIER}">{CONTENT}</footer>
```
where content can contain several `<nav>` tags with `footer-title` and links inside
#### Rules
- {MODIFIER} is optional and can have one of each placement/direction class names
- try to use `sm:footer-horizontal` to make footer responsive
- suggestion - use `base-200` for background color

View file

@ -0,0 +1,19 @@
### hero
Hero is a component for displaying a large box or image with a title and description
[hero docs](https://daisyui.com/components/hero/)
#### Class names
- component: `hero`
- part: `hero-content`, `hero-overlay`
#### Syntax
```html
<div class="hero {MODIFIER}">{CONTENT}</div>
```
#### Rules
- {MODIFIER} is optional
- Use `hero-content` for the text content
- Use `hero-overlay` inside the hero to overlay the background image with a color
- Content can contain a figure

View file

@ -0,0 +1,33 @@
### hover-3d
Hover 3D is a wrapper component that adds a 3D hover effect to its content. When we hover over the component, it tilts and rotates based on the mouse position, creating an interactive 3D effect.
`hover-3d` works by placing 8 hover zones on top of the content. Each zone detects mouse movement and applies a slight rotation to the content based on the mouse position within that zone. The combined effect of all 8 zones creates a smooth and responsive 3D tilt effect as the user moves their mouse over the component.
Only use non-interactive content inside the `hover-3d` wrapper. If you want to make the entire card clickable, use a link for the whole `hover-3d` component instead of putting interactive elements like buttons or links inside it.
[hover-3d docs](https://daisyui.com/components/hover-3d/)
#### Class names
- component: `hover-3d`
#### Syntax
```html
<div class="hover-3d my-12 mx-2">
<figure class="max-w-100 rounded-2xl">
<img src="https://img.daisyui.com/images/stock/creditcard.webp" alt="Tailwind CSS 3D card" />
</figure>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
```
#### Rules
- hover-3d can be a `<div>` or a `<a>`
- hover-3d must have exactly 9 direct children where the first child is the main content and the other 8 children are empty `<div>`s for hover zones
- content inside hover-3d should be non-interactive (no buttons, links, inputs, etc)

View file

@ -0,0 +1,23 @@
### hover-gallery
Hover Gallery is container of images. The first image is visible by default and when we hover it horizontally, other images show up. Hover Gallery is useful for product cards in ecommerce sites, portfolios or in image galleries. Hover Gallery can include up to 10 images.
[hover-gallery docs](https://daisyui.com/components/hover-gallery/)
#### Class names
- component: `hover-gallery`
#### Syntax
```html
<figure class="hover-gallery max-w-60">
<img src="https://img.daisyui.com/images/stock/daisyui-hat-1.webp" />
<img src="https://img.daisyui.com/images/stock/daisyui-hat-2.webp" />
<img src="https://img.daisyui.com/images/stock/daisyui-hat-3.webp" />
<img src="https://img.daisyui.com/images/stock/daisyui-hat-4.webp" />
</figure>
```
#### Rules
- hover-gallery can be a `<div>` or a `<figure>`
- hover-gallery can include up to 10 images
- hover-gallery needs a max width otherwise if fills the container width
- images must be same dimensions for a proper alignment

View file

@ -0,0 +1,21 @@
### indicator
Indicators are used to place an element on the corner of another element
[indicator docs](https://daisyui.com/components/indicator/)
#### Class names
- component: `indicator`
- part: `indicator-item`
- placement: `indicator-start`, `indicator-center`, `indicator-end`, `indicator-top`, `indicator-middle`, `indicator-bottom`
#### Syntax
```html
<div class="indicator">
<span class="indicator-item">{indicator content}</span>
<div>{main content}</div>
</div>
```
#### Rules
- Add all indicator elements (with `indicator-item` class) before the main content
- {placement} is optional and can have one of each horizontal/vertical class names. default is `indicator-end indicator-top`

View file

@ -0,0 +1,20 @@
### input
Text Input is a simple input field
[input docs](https://daisyui.com/components/input/)
#### Class names
- component: `input`
- style: `input-ghost`
- color: `input-neutral`, `input-primary`, `input-secondary`, `input-accent`, `input-info`, `input-success`, `input-warning`, `input-error`
- size: `input-xs`, `input-sm`, `input-md`, `input-lg`, `input-xl`
#### Syntax
```html
<input type="{type}" placeholder="Type here" class="input {MODIFIER}" />
```
#### Rules
- {MODIFIER} is optional and can have one of each style/color/size class names
- Can be used with any input field type (text, password, email, etc.)
- Use `input` class for the parent when you have more than one element inside input

View file

@ -0,0 +1,19 @@
### join
Join is a container for grouping multiple items, it can be used to group buttons, inputs, etc. Join applies border radius to the first and last item. Join can be used to create a horizontal or vertical list of items
[join docs](https://daisyui.com/components/join/)
#### Class names
- component: `join`, `join-item`
- direction: `join-vertical`, `join-horizontal`
#### Syntax
```html
<div class="join {MODIFIER}">{CONTENT}</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the direction class names
- Any direct child of the join element will get joined together
- Any element with `join-item` will be affected
- Use `lg:join-horizontal` for responsive layouts

View file

@ -0,0 +1,16 @@
### kbd
Kbd is used to display keyboard shortcuts
[kbd docs](https://daisyui.com/components/kbd/)
#### Class names
- component: `kbd`
- size: `kbd-xs`, `kbd-sm`, `kbd-md`, `kbd-lg`, `kbd-xl`
#### Syntax
```html
<kbd class="kbd {MODIFIER}">K</kbd>
```
#### Rules
- {MODIFIER} is optional and can have one of the size class names

View file

@ -0,0 +1,27 @@
### label
Label is used to provide a name or title for an input field. Label can be placed before or after the field
[label docs](https://daisyui.com/components/label/)
#### Class names
- component: `label`, `floating-label`
#### Syntax
For regular label:
```html
<label class="input">
<span class="label">{label text}</span>
<input type="text" placeholder="Type here" />
</label>
```
For floating label:
```html
<label class="floating-label">
<input type="text" placeholder="Type here" class="input" />
<span>{label text}</span>
</label>
```
#### Rules
- The `input` class is for styling the parent element which contains the input field and label, so the label does not have the 'input' class
- Use `floating-label` for the parent of an input field and a span that floats above the input field when the field is focused

View file

@ -0,0 +1,17 @@
### link
Link adds the missing underline style to links
[link docs](https://daisyui.com/components/link/)
#### Class names
- component: `link`
- style: `link-hover`
- color: `link-neutral`, `link-primary`, `link-secondary`, `link-accent`, `link-success`, `link-info`, `link-warning`, `link-error`
#### Syntax
```html
<a class="link {MODIFIER}">Click me</a>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier class names

View file

@ -0,0 +1,20 @@
### list
List is a vertical layout to display information in rows
[list docs](https://daisyui.com/components/list/)
#### Class Names:
- Component: `list`, `list-row`
- Modifier: `list-col-wrap`, `list-col-grow`
#### Syntax
```html
<ul class="list">
<li class="list-row">{CONTENT}</li>
</ul>
```
#### Rules
- Use `list-row` for each item inside the list
- By default, the second child of the `list-row` will fill the remaining space. You can use `list-col-grow` on another child to make it fill the remaining space instead
- Use `list-col-wrap` to force an item to wrap to the next line

View file

@ -0,0 +1,17 @@
### loading
Loading shows an animation to indicate that something is loading
[loading docs](https://daisyui.com/components/loading/)
#### Class names
- component: `loading`
- style: `loading-spinner`, `loading-dots`, `loading-ring`, `loading-ball`, `loading-bars`, `loading-infinity`
- size: `loading-xs`, `loading-sm`, `loading-md`, `loading-lg`, `loading-xl`
#### Syntax
```html
<span class="loading {MODIFIER}"></span>
```
#### Rules
- {MODIFIER} is optional and can have one of the style/size class names

View file

@ -0,0 +1,19 @@
### mask
Mask crops the content of the element to common shapes
[mask docs](https://daisyui.com/components/mask/)
#### Class names
- component: `mask`
- style: `mask-squircle`, `mask-heart`, `mask-hexagon`, `mask-hexagon-2`, `mask-decagon`, `mask-pentagon`, `mask-diamond`, `mask-square`, `mask-circle`, `mask-star`, `mask-star-2`, `mask-triangle`, `mask-triangle-2`, `mask-triangle-3`, `mask-triangle-4`
- modifier: `mask-half-1`, `mask-half-2`
#### Syntax
```html
<img class="mask {MODIFIER}" src="{image-url}" />
```
#### Rules
- {MODIFIER} is required and can have one of the style/modifier class names
- You can change the shape of any element using `mask` class names
- You can set custom sizes using `w-*` and `h-*`

View file

@ -0,0 +1,69 @@
### megamenu
A megamenu is a large, horizontal menu where each item opens a popover to show a large block of navigation links. Megamenu must be used once, on top of the page. Inside each popover, you can use a daisyUI menu, or any custom content. Megamenu fits better on large screens only, and for small screens, you can hide the megamenu and show the content in a dropdown or a drawer.
[megamenu docs](https://daisyui.com/components/megamenu/)
#### Class names
- component: `megamenu`
- part: `megamenu-active`
- modifier: `megamenu-wide`, `megamenu-full`
- direction: `megamenu-vertical`
- size: `megamenu-xs`, `megamenu-sm`, `megamenu-md`, `megamenu-lg`, `megamenu-xl`
#### Syntax
```html
<button class="btn sm:hidden" popovertarget="my-megamenu-1">Menu</button>
<div class="megamenu max-sm:megamenu-vertical {MODIFIER} p-2 border border-base-300" id="my-megamenu-1" popover>
<span class="megamenu-active"></span>
<button popovertarget="item-1">button 1</button>
<div id="item-1" popover>
{CONTENT}
</div>
<button popovertarget="item-2">button 2</button>
<div id="item-2" popover>
{CONTENT}
</div>
</div>
```
Example of megamenu-wide with lots of menu items
```html
<button class="btn sm:hidden" popovertarget="my-megamenu-2">Menu</button>
<div class="megamenu max-sm:megamenu-vertical megamenu-wide w-full p-2 border border-base-300" id="my-megamenu-2" popover>
<span class="megamenu-active"></span>
<button popovertarget="c1">One</button>
<div id="c1" popover>
<div class="flex max-sm:flex-col items-start">
<ul class="menu w-full md:menu-horizontal">
<li>
<a>first column menu item</a>
<ul><li><a>sub menu item</a></li></ul>
</li>
<li>
<a>second column menu item</a>
<ul><li><a>sub menu item</a></li></ul>
</li>
<li>
<a>third column menu item</a>
<ul><li><a>sub menu item</a></li></ul>
</li>
</ul>
<img src="{image-url}" class="md:max-w-sm max-md:w-auto" alt="sample image at the end of the megamenu">
</div>
</div>
</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier class names and one of the size class names
- `megamenu-active` span is mandatory. it's the indicator that moves under the active item
- Each button must have a corresponding popover with the same id as the popovertarget value. HTML IDs must be unique.
- {CONTENT} can include a daisyUI menu (`<ul class="menu"><li><a>List item 1</a></li></ul>`), or any custom content
- you can put horizontal menu inside the popover like `<ul class="menu menu-horizontal"><li><a>List item 1</a></li></ul>`, or any other variation of daisyUI `menu` component
- On small screens the whole megamenu is hidden using `max-sm:megamenu-vertical` class and it will be vertical when visible. The button with `popovertarget="my-megamenu-1"` opens the megamenu with `id="my-megamenu-1" popover`
- On large screens, we hide the button using `sm:hidden` and the megamenu will be a horizontal menu, and each button inside the megamenu will open its corresponding popover.
- megamenu can have max 10 popovers inside it
- to hide the arrow from the buttons, use `after:content-none` class on the buttons

View file

@ -0,0 +1,33 @@
### menu
Menu is used to display a list of links vertically or horizontally
[menu docs](https://daisyui.com/components/menu/)
#### Class names
- component: `menu`
- part: `menu-title`, `menu-dropdown`, `menu-dropdown-toggle`
- modifier: `menu-disabled`, `menu-active`, `menu-focus`, `menu-dropdown-show`, `menu-paged`
- size: `menu-xs`, `menu-sm`, `menu-md`, `menu-lg`, `menu-xl`
- direction: `menu-vertical`, `menu-horizontal`
#### Syntax
Vertical menu:
```html
<ul class="menu">
<li><button>Item</button></li>
</ul>
```
Horizontal menu:
```html
<ul class="menu menu-horizontal">
<li><button>Item</button></li>
</ul>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier/size/direction class names
- Use `lg:menu-horizontal` for responsive layouts
- Use `menu-title` for list item title
- Use `<details>` tag to make submenus collapsible
- Use `menu-paged` to show one submenu level at a time; the open `<summary>` becomes the back button
- Use `menu-dropdown` and `menu-dropdown-toggle` to toggle the dropdown using JS

View file

@ -0,0 +1,22 @@
### mockup-browser
Browser mockup shows a box that looks like a browser window
[mockup-browser docs](https://daisyui.com/components/mockup-browser/)
#### Class names
- component: `mockup-browser`
- part: `mockup-browser-toolbar`
#### Syntax
```html
<div class="mockup-browser">
<div class="mockup-browser-toolbar">
{toolbar content}
</div>
<div>{CONTENT}</div>
</div>
```
#### Rules
- For a default mockup, use just `mockup-browser` class name
- To set a URL in toolbar, add a div with `input` class

View file

@ -0,0 +1,19 @@
### mockup-code
Code mockup is used to show a block of code in a box that looks like a code editor
[mockup-code docs](https://daisyui.com/components/mockup-code/)
#### Class names
- component: `mockup-code`
#### Syntax
```html
<div class="mockup-code">
<pre data-prefix="$"><code>npm i daisyui</code></pre>
</div>
```
#### Rules
- Use `<pre data-prefix="{prefix}">` to show a prefix before each line
- Use `<code>` tag to add code syntax highlighting (requires additional library)
- To highlight a line, add background/text color

View file

@ -0,0 +1,19 @@
### mockup-phone
Phone mockup shows a mockup of an iPhone
[mockup-phone docs](https://daisyui.com/components/mockup-phone/)
#### Class names
- component: `mockup-phone`
- part: `mockup-phone-camera`, `mockup-phone-display`
#### Syntax
```html
<div class="mockup-phone">
<div class="mockup-phone-camera"></div>
<div class="mockup-phone-display">{CONTENT}</div>
</div>
```
#### Rules
- Inside `mockup-phone-display` you can add anything

View file

@ -0,0 +1,14 @@
### mockup-window
Window mockup shows a box that looks like an operating system window
[mockup-window docs](https://daisyui.com/components/mockup-window/)
#### Class names
- component: `mockup-window`
#### Syntax
```html
<div class="mockup-window">
<div>{CONTENT}</div>
</div>
```

View file

@ -0,0 +1,84 @@
### modal
Modal is used to show a dialog or a box when you click a button
[modal docs](https://daisyui.com/components/modal/)
#### Class names
- component: `modal`
- part: `modal-box`, `modal-action`, `modal-backdrop`, `modal-toggle`
- modifier: `modal-open`
- placement: `modal-top`, `modal-middle`, `modal-bottom`, `modal-start`, `modal-end`
#### Syntax
Using HTML dialog element (recommended)
```html
<button onclick="my_modal.showModal()">Open modal</button>
<dialog id="my_modal" class="modal">
<div class="modal-box">{CONTENT}</div>
<form method="dialog" class="modal-backdrop"><button>close</button></form>
</dialog>
```
If we want it to close when clicking outside:
```html
<button class="btn" onclick="my_modal.showModal()">open modal</button>
<dialog id="my_modal" class="modal">
<div class="modal-box">
<h3 class="text-lg font-bold">Hello!</h3>
<p class="py-4">Press ESC key or click outside to close</p>
</div>
<form method="dialog" class="modal-backdrop">
<button>close</button>
</form>
</dialog>
```
Using popover API (recommended only if we DON'T want to trap the keyboard navigation in the modal)
```html
<button popovertarget="my_modal" class="btn">Open modal</button>
<div class="modal" popover id="my_modal">
<div class="modal-box">
{CONTENT}
<div class="modal-action">
<button popovertarget="my_modal" popovertargetaction="hide">close</button>
</div>
</div>
</div>
```
If we want it to close when clicking outside:
```html
<button class="btn" popovertarget="my_modal">Open</button>
<div class="modal" id="my_modal" popover>
<div class="modal-box">
<h3 class="font-bold text-lg">Hello!</h3>
<p class="py-4">Press ESC key or click the button below to close</p>
</div>
<div class="modal-backdrop">
<button popovertarget="my_modal" popovertargetaction="hide">close</button>
</div>
</div>
```
Using checkbox (legacy)
```html
<label for="my-modal" class="btn">Open modal</label>
<input type="checkbox" id="my-modal" class="modal-toggle" />
<div class="modal">
<div class="modal-box">{CONTENT}</div>
<label class="modal-backdrop" for="my-modal">Close</label>
</div>
```
Using anchor links (legacy)
```html
<a href="#my-modal" class="btn">Open modal</a>
<div class="modal" id="my-modal">
<div class="modal-box">{CONTENT}</div>
</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier/placement class names
- Use unique IDs for each modal
- For HTML dialog element modals, add `<form method="dialog">` for closing the modal with submit

View file

@ -0,0 +1,18 @@
### navbar
Navbar is used to show a navigation bar on the top of the page
[navbar docs](https://daisyui.com/components/navbar/)
#### Class names
- component: `navbar`
- part: `navbar-start`, `navbar-center`, `navbar-end`
#### Syntax
```html
<div class="navbar">{CONTENT}</div>
```
#### Rules
- use `navbar-start`, `navbar-center`, `navbar-end` to position content horizontally
- put anything inside each section
- suggestion - use `base-200` for background color

View file

@ -0,0 +1,28 @@
### OTP
OTP (One-Time Password) component for inputting verification codes. It's usually 4 to 6 digits long and is used for two-factor authentication (2FA) or passwordless login.
[OTP docs](https://daisyui.com/components/otp/)
#### Class names
- component: `otp`
- size: `otp-xs`, `otp-sm`, `otp-md`, `otp-lg`, `otp-xl`
- modifier: `otp-joined`
- color: `otp-neutral`, `otp-primary`, `otp-secondary`, `otp-accent`, `otp-info`, `otp-success`, `otp-warning`, `otp-error`
#### Syntax
```html
<label class="otp {MODIFIER}">
<span></span>
<span></span>
<span></span>
<span></span>
<input type="text" autocomplete="one-time-code" inputmode="numeric" maxlength="4" pattern="[0-9]{4}" required />
</label>
```
#### Rules
- {MODIFIER} is optional and can have one of the size/color class names
- `otp-joined` modifier connects the character boxes together
- the `otp` class is for a label. The label should have 4 to 6 empty `<span>` elements for the visual representation of each digit and an input field for entering the code
- The number of `<span>` elements must match the `maxlength` attribute and the pattern in the input field. For example, if you have 6 `<span>` elements, the input should have `maxlength="6"` and `pattern="\d{6}"`
- `autocomplete="one-time-code"` and `inputmode="numeric"` are important for mobile devices to show the appropriate keyboard and to allow autofill of the OTP code

View file

@ -0,0 +1,18 @@
### pagination
Pagination is a group of buttons
[pagination docs](https://daisyui.com/components/pagination/)
#### Class names
- component: `join`
- part: `join-item`
- direction: `join-vertical`, `join-horizontal`
#### Syntax
```html
<div class="join">{CONTENT}</div>
```
#### Rules
- Use `join-item` for each button or link inside the pagination
- Use `btn` class for styling pagination items

View file

@ -0,0 +1,17 @@
### progress
Progress bar can be used to show the progress of a task or to show the passing of time
[progress docs](https://daisyui.com/components/progress/)
#### Class names
- component: `progress`
- color: `progress-neutral`, `progress-primary`, `progress-secondary`, `progress-accent`, `progress-info`, `progress-success`, `progress-warning`, `progress-error`
#### Syntax
```html
<progress class="progress {MODIFIER}" value="50" max="100"></progress>
```
#### Rules
- {MODIFIER} is optional and can have one of the color class names
- You must specify value and max attributes

View file

@ -0,0 +1,18 @@
### radial-progress
Radial progress can be used to show the progress of a task or to show the passing of time
[radial-progress docs](https://daisyui.com/components/radial-progress/)
#### Class names
- component: `radial-progress`
#### Syntax
```html
<div class="radial-progress" style="--value:70;" aria-valuenow="70" role="progressbar">70%</div>
```
#### Rules
- The `--value` CSS variable and text must be a number between 0 and 100
- you need to add `aria-valuenow={value}` and `role="progressbar"` so screen readers can properly read value and also show that its a progress element to them
- Use `div` instead of progress because browsers can't show text inside progress tag
- Use `--size` for setting size (default 5rem) and `--thickness` to set how thick the indicator is

View file

@ -0,0 +1,19 @@
### radio
Radio buttons allow the user to select one option
[radio docs](https://daisyui.com/components/radio/)
#### Class names
- component: `radio`
- color: `radio-neutral`, `radio-primary`, `radio-secondary`, `radio-accent`, `radio-success`, `radio-warning`, `radio-info`, `radio-error`
- size: `radio-xs`, `radio-sm`, `radio-md`, `radio-lg`, `radio-xl`
#### Syntax
```html
<input type="radio" name="{name}" class="radio {MODIFIER}" />
```
#### Rules
- {MODIFIER} is optional and can have one of the size/color class names
- Replace {name} with a unique name for the radio group
- Each set of radio inputs should have unique `name` attributes to avoid conflicts with other sets of radio inputs on the same page

View file

@ -0,0 +1,20 @@
### range
Range slider is used to select a value by sliding a handle
[range docs](https://daisyui.com/components/range/)
#### Class names
- component: `range`
- color: `range-neutral`, `range-primary`, `range-secondary`, `range-accent`, `range-success`, `range-warning`, `range-info`, `range-error`
- size: `range-xs`, `range-sm`, `range-md`, `range-lg`, `range-xl`
- direction: `range-vertical` (vertical slider)
#### Syntax
```html
<input type="range" min="0" max="100" value="40" class="range {MODIFIER}" />
```
#### Rules
- {MODIFIER} is optional and can have one of each color/size class names
- For a vertical slider use `range-vertical`
- You must specify `min` and `max` attributes

View file

@ -0,0 +1,31 @@
### rating
Rating is a set of radio buttons that allow the user to rate something
[rating docs](https://daisyui.com/components/rating/)
#### Class names
- component: `rating`
- modifier: `rating-half`, `rating-hidden`
- size: `rating-xs`, `rating-sm`, `rating-md`, `rating-lg`, `rating-xl`
#### Syntax
```html
<div class="rating {MODIFIER}">
<input type="radio" name="rating-1" class="mask mask-star" />
</div>
```
For a read-only (non-interactive) rating, use `<div>` elements instead of radio inputs and mark the selected one with `aria-current="true"`:
```html
<div class="rating">
<div class="mask mask-star" aria-label="1 star"></div>
<div class="mask mask-star" aria-label="2 star" aria-current="true"></div>
<div class="mask mask-star" aria-label="3 star"></div>
</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier/size class names
- Each set of rating inputs should have unique `name` attributes to avoid conflicts with other ratings on the same page
- Add `rating-hidden` for the first radio to make it hidden so user can clear the rating
- For a read-only/non-interactive rating, use `<div>` elements instead of the radio inputs and mark the selected one with `aria-current="true"`

View file

@ -0,0 +1,20 @@
### select
Select is used to pick a value from a list of options
[select docs](https://daisyui.com/components/select/)
#### Class names
- component: `select`
- style: `select-ghost`
- color: `select-neutral`, `select-primary`, `select-secondary`, `select-accent`, `select-info`, `select-success`, `select-warning`, `select-error`
- size: `select-xs`, `select-sm`, `select-md`, `select-lg`, `select-xl`
#### Syntax
```html
<select class="select {MODIFIER}">
<option>Option</option>
</select>
```
#### Rules
- {MODIFIER} is optional and can have one of each style/color/size class names

View file

@ -0,0 +1,20 @@
### skeleton
Skeleton is a component that can be used to show a loading state
[skeleton docs](https://daisyui.com/components/skeleton/)
#### Class names
- component: `skeleton`
- modifier: `skeleton-text`
#### Syntax
```html
<div class="skeleton"></div>
```
Example with text skeleton:
```html
<div class="skeleton skeleton-text">Loading data...</div>
```
#### Rules
- Add `h-*` and `w-*` utility classes to set height and width

View file

@ -0,0 +1,17 @@
### stack
Stack visually puts elements on top of each other
[stack docs](https://daisyui.com/components/stack/)
#### Class Names:
- Component: `stack`
- Modifier: `stack-top`, `stack-bottom`, `stack-start`, `stack-end`
#### Syntax
```html
<div class="stack {MODIFIER}">{CONTENT}</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier class names
- You can use `w-*` and `h-*` classes to set the width and height of the stack, making all items the same size

View file

@ -0,0 +1,21 @@
### stat
Stat is used to show numbers and data in a block
[stat docs](https://daisyui.com/components/stat/)
#### Class names
- Component: `stats`
- Part: `stat`, `stat-title`, `stat-value`, `stat-desc`, `stat-figure`, `stat-actions`
- Direction: `stats-horizontal`, `stats-vertical`
#### Syntax
```html
<div class="stats {MODIFIER}">
<div class="stat">{CONTENT}</div>
</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the direction class names
- It's horizontal by default but you can make it vertical with the `stats-vertical` class
- Content includes `stat-title`, `stat-value`, `stat-desc` inside a `stat`

View file

@ -0,0 +1,18 @@
### status
Status is a really small icon to visually show the current status of an element, like online, offline, error, etc
[status docs](https://daisyui.com/components/status/)
#### Class Names:
- Component: `status`
- Color: `status-neutral`, `status-primary`, `status-secondary`, `status-accent`, `status-info`, `status-success`, `status-warning`, `status-error`
- Size: `status-xs`, `status-sm`, `status-md`, `status-lg`, `status-xl`
#### Syntax
```html
<span class="status {MODIFIER}"></span>
```
#### Rules
- {MODIFIER} is optional and can have one of the color/size class names
- This compnent renders a small visual indicator to draw attention

View file

@ -0,0 +1,25 @@
### steps
Steps can be used to show a list of steps in a process
[steps docs](https://daisyui.com/components/steps/)
#### Class Names:
- Component: `steps`
- Part: `step`, `step-icon`
- Color: `step-neutral`, `step-primary`, `step-secondary`, `step-accent`, `step-info`, `step-success`, `step-warning`, `step-error`
- Direction: `steps-vertical`, `steps-horizontal`
#### Syntax
```html
<ul class="steps {DIRECTION}">
<li class="step step-primary">{completed step}</li>
<li class="step">{upcoming step}</li>
</ul>
```
#### Rules
- Steps are horizontal by default; add `steps-vertical` to the `ul` for a vertical layout
- Direction classes go on `steps`; `step-*` color classes go on individual `step` items
- To mark a step with the primary color, add `step-primary` to that `li`
- You can add an icon in each step using `step-icon` class
- To display custom data, add `data-content="{value}"` to the `<li>`

View file

@ -0,0 +1,33 @@
### swap
Swap allows you to toggle the visibility of two elements using a checkbox or a class name
[swap docs](https://daisyui.com/components/swap/)
#### Class Names:
- Component: `swap`
- Part: `swap-on`, `swap-off`, `swap-indeterminate`
- Modifier: `swap-active`
- Style: `swap-rotate`, `swap-flip`
#### Syntax
Using checkbox
```html
<label class="swap {MODIFIER}">
<input type="checkbox" />
<div class="swap-on">{content when active}</div>
<div class="swap-off">{content when inactive}</div>
</label>
```
Using class name
```html
<div class="swap {MODIFIER}">
<div class="swap-on">{content when active}</div>
<div class="swap-off">{content when inactive}</div>
</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier/style class names
- Use only a hidden checkbox to control swap state or add/remove the `swap-active` class using JS to control state
- To show something when the checkbox is indeterminate, use `swap-indeterminate` class

View file

@ -0,0 +1,32 @@
### tab
Tabs can be used to show a list of links in a tabbed format
[tab docs](https://daisyui.com/components/tab/)
#### Class Names:
- Component: `tabs`
- Part: `tab`, `tab-content`
- Style: `tabs-box`, `tabs-border`, `tabs-lift`
- Size: `tabs-xs`, `tabs-sm`, `tabs-md`, `tabs-lg`, `tabs-xl`
- Modifier: `tab-active`, `tab-disabled`
- Placement: `tabs-top`, `tabs-bottom`
#### Syntax
Using buttons:
```html
<div role="tablist" class="tabs {MODIFIER}">
<button role="tab" class="tab">Tab</button>
</div>
```
Using radio inputs:
```html
<div role="tablist" class="tabs tabs-box">
<input type="radio" name="my_tabs" class="tab" aria-label="Tab" />
</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the style/size class names
- Radio inputs are needed for tab content to work with tab click
- If tabs gets a background then every tab inside it becomes rounded from both top corners

View file

@ -0,0 +1,31 @@
### table
Table can be used to show a list of data in a table format
[table docs](https://daisyui.com/components/table/)
#### Class Names:
- Component: `table`
- Modifier: `table-zebra`, `table-pin-rows`, `table-pin-cols`
- Size: `table-xs`, `table-sm`, `table-md`, `table-lg`, `table-xl`
#### Syntax
```html
<div class="overflow-x-auto">
<table class="table {MODIFIER}">
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<th></th>
</tr>
</tbody>
</table>
</div>
```
#### Rules
- {MODIFIER} is optional and can have one of each modifier/size class names
- The `overflow-x-auto` class is added to the wrapper div to make the table horizontally scrollable on smaller screens

View file

@ -0,0 +1,66 @@
### text-rotate
Text Rotate can show up to 6 lines of text, one at a time, with an infinite loop animation. Duration is 10 seconds by default. The animation will pause on hover.
[text-rotate docs](https://daisyui.com/components/text-rotate/)
#### Class Names:
- Component: `text-rotate`
#### Syntax
```html
<span class="text-rotate">
<span>
<span>Word 1</span>
<span>Word 2</span>
<span>Word 3</span>
<span>Word 4</span>
<span>Word 5</span>
<span>Word 6</span>
</span>
</span>
```
Example:
Big font size, horizontally centered
```html
<span class="text-rotate max-md:text-3xl text-7xl font-title">
<span class="justify-items-center">
<span>DESIGN</span>
<span>DEVELOP</span>
<span>DEPLOY</span>
<span>SCALE</span>
<span>MAINTAIN</span>
<span>REPEAT</span>
</span>
</span>
```
Rotating words in a sentence, different colors for each word
```html
<span>
Providing AI Agents for
<span class="text-rotate">
<span>
<span class="bg-teal-400 text-teal-800 px-2">Designers</span>
<span class="bg-red-400 text-red-800 px-2">Developers</span>
<span class="bg-blue-400 text-blue-800 px-2">Managers</span>
</span>
</span>
</span>
```
Custom line height in case you have a tall font or need more vertical spacing between lines
```html
<span class="text-rotate max-md:text-3xl text-7xl font-title leading-[2]">
<span class="justify-items-center">
<span>DESIGN</span>
<span>DEVELOP</span>
<span>DEPLOY</span>
<span>SCALE</span>
<span>MAINTAIN</span>
<span>REPEAT</span>
</span>
</span>
```
#### Rules
- `text-rotate` must have one span or div inside it that contains 2 to 6 spans/divs for each line of text
- Total duration of the loop is 10000 milliseconds by default
- You can set custom duration using `duration-{value}` utility class, where value is in milliseconds (e.g. `duration-12000` for 12 seconds)

View file

@ -0,0 +1,18 @@
### textarea
Textarea allows users to enter text in multiple lines
[textarea docs](https://daisyui.com/components/textarea/)
#### Class Names:
- Component: `textarea`
- Style: `textarea-ghost`
- Color: `textarea-neutral`, `textarea-primary`, `textarea-secondary`, `textarea-accent`, `textarea-info`, `textarea-success`, `textarea-warning`, `textarea-error`
- Size: `textarea-xs`, `textarea-sm`, `textarea-md`, `textarea-lg`, `textarea-xl`
#### Syntax
```html
<textarea class="textarea {MODIFIER}" placeholder="Bio"></textarea>
```
#### Rules
- {MODIFIER} is optional and can have one of each style/color/size class names

View file

@ -0,0 +1,15 @@
### theme-controller
If a checked checkbox input or a checked radio input with theme-controller class exists in the page, The page will have the same theme as that input's value
[theme-controller docs](https://daisyui.com/components/theme-controller/)
#### Class names
- component: `theme-controller`
#### Syntax
```html
<input type="checkbox" value="{theme-name}" class="theme-controller" />
```
#### Rules
- The value attribute of the input element should be a valid daisyUI theme name

View file

@ -0,0 +1,27 @@
### timeline
Timeline component shows a list of events in chronological order
[timeline docs](https://daisyui.com/components/timeline/)
#### Class Names:
- Component: `timeline`
- Part: `timeline-start`, `timeline-middle`, `timeline-end`
- Modifier: `timeline-snap-icon`, `timeline-box`, `timeline-compact`
- Direction: `timeline-vertical`, `timeline-horizontal`
#### Syntax
```html
<ul class="timeline {MODIFIER}">
<li>
<div class="timeline-start">{start}</div>
<div class="timeline-middle">{icon}</div>
<div class="timeline-end">{end}</div>
</li>
</ul>
```
#### Rules
- {MODIFIER} is optional and can have one of the modifier/direction class names
- To make a vertical timeline, add the `timeline-vertical` class to the `ul` element or just do nothing (because its the default style.)
- Add `timeline-snap-icon` to snap the icon to the start instead of middle
- Add the `timeline-compact` class to force all items on one side

View file

@ -0,0 +1,16 @@
### toast
Toast is a wrapper to stack elements, positioned on the corner of page
[toast docs](https://daisyui.com/components/toast/)
#### Class Names:
- Component: `toast`
- Placement: `toast-start`, `toast-center`, `toast-end`, `toast-top`, `toast-middle`, `toast-bottom`
#### Syntax
```html
<div class="toast {MODIFIER}">{CONTENT}</div>
```
#### Rules
- {MODIFIER} is optional and can have one of the placement class names

View file

@ -0,0 +1,17 @@
### toggle
Toggle is a checkbox that is styled to look like a switch button
[toggle docs](https://daisyui.com/components/toggle/)
#### Class Names:
- Component: `toggle`
- Color: `toggle-primary`, `toggle-secondary`, `toggle-accent`, `toggle-neutral`, `toggle-success`, `toggle-warning`, `toggle-info`, `toggle-error`
- Size: `toggle-xs`, `toggle-sm`, `toggle-md`, `toggle-lg`, `toggle-xl`
#### Syntax
```html
<input type="checkbox" class="toggle {MODIFIER}" />
```
#### Rules
- {MODIFIER} is optional and can have one of each color/size class names

View file

@ -0,0 +1,22 @@
### tooltip
Tooltip can be used to show a message when hovering over an element
[tooltip docs](https://daisyui.com/components/tooltip/)
#### Class names
- component: `tooltip`
- part: `tooltip-content`
- modifier: `tooltip-open`
- placement: `tooltip-top`, `tooltip-bottom`, `tooltip-left`, `tooltip-right`
- alignment: `tooltip-start`, `tooltip-center`, `tooltip-end`
- color: `tooltip-primary`, `tooltip-secondary`, `tooltip-accent`, `tooltip-info`, `tooltip-success`, `tooltip-warning`, `tooltip-error`
#### Syntax
```html
<div class="tooltip {MODIFIER}" data-tip="Tooltip text">
<button class="btn">Hover me</button>
</div>
```
#### Rules
- {MODIFIER} is optional and can have one of each modifier/placement/color class names

View file

@ -0,0 +1,17 @@
### validator
Validator class changes the color of form elements to error or success based on input's validation rules
[validator docs](https://daisyui.com/components/validator/)
#### Class names
- component: `validator`
- part: `validator-hint`
#### Syntax
```html
<input type="{type}" class="input validator" required />
<p class="validator-hint">Error message</p>
```
#### Rules
- Use with `input`, `select`, `textarea`