MVUI Componentes
Personalizá tu cuenta, tu experiencia visual y la seguridad del sistema.
Accordion
Tailwind Accordion is a collapsible UI element built using Tailwind. It allows users to expand and collapse sections of content by clicking on headers, revealing and hiding information on demand.
Basic Usage
Use data-mv-accordion selector to enable accordion behavior where clicking a section header expands its content, while others collapse.
Default Open
Use active class on an accordion to display a specific section by default.
Expand All
Use data-mv-accordion-expand-all="true" attribute to keep all accordions visible at all times despite toggling.
Outline Style
Apply mv-accordion-outline class to add custom border styles to your accordion.
Navigation Menu
Use accordion to handle advanced navigation menus.
Avatar
Avatar component
Avatar
An image element with a fallback for representing the user.
Falback
Indicator
Status
Badge
Size
Group
Users
Trusted by 100K+ useers.
Alert
Displays a callout for user attention, such as a success message, warning, or error.
Basic Usage
Mono
Outline
Light
Size
Actions
Example Alert Title
Insert the alert description here. It would look better as two lines of text.
Example Alert Title
Insert the alert description here. It would look better as two lines of text.
Example Alert Title
Insert the alert description here. It would look better as two lines of text.
Badge
A Badge is a small, visually distinct element used to display contextual metadata, such as status, category, or notifications, enhancing the clarity and organization of your design.
Basic Usage
Solid
Outline
Light
Circle
Square
Dot
Icon
Removable
Size
Breadcrumb
Displays a hierarchy of links to the current page or resource in an application.
Basic Usage
Icon
Separator
Dropdown
Card
Button
Renders a clickable button or an element styled as a button.
BASIC
CIRCLE
GHOST
WITH ICONS
CIRCLE
Icon Only
SIZE
Card
Containers for displaying content and actions about a single subject.
Basic Usage
Recent Users
Accent
Recent Users
Simple Content
Project Kickoff
Finalize scope, owners, and launch milestones for the next sprint.
Media and Meta
Product Roadmap Review
Align design, engineering, and growth priorities for Q3 planning.
Loading Skeleton
Loading State
Stats Grid
Weekly Performance
Revenue
$84.2K
+12.4% vs last week
Orders
1,482
+6.9% vs last week
Conversion
4.8%
+1.1% vs last week
Refunds
0.9%
-0.3% vs last week
Action List
Action List
Carousel
Horizontal slideshow with prev/next, optional pagination, thumbnails, autoplay, and scroll-snap, implemented as MVCarousel with data-mv-carousel* markup. Styling uses MVUI and Metronic tokens.
Basic usage
Root holds a viewport (scroll container) and slides (data-mv-carousel-item). Add tabIndex={0} (or tabindex="0" in HTML) so ArrowLeft / ArrowRight work when the carousel is focused.
Keyboard
Put tabindex="0" (or tabIndex={0}) on the carousel root so it can receive focus, then use ArrowLeft / ArrowRight to go to the previous or next slide while focus is inside the carousel (including on the root). The handler skips arrow keys when focus is in an input, textarea, or contenteditable node. In RTL, arrows follow visual next/previous.
Focus the carousel (click inside it or press Tab), then use ← / → to move between slides. Arrow keys are ignored while typing in inputs.
Scrollbar visible
By default the viewport and thumbnail strip use hidden native scrollbars (scrolling still works). Set data-mv-carousel-show-scrollbar="true" on the root—or pass showScrollbar: true to getOrCreateInstance—to show them. This example also adds mv-scrollable on the viewport for MVUI’s thin scrollbar styling.
Overlay arrows
Add prev/next buttons as overlay controls inside a relative carousel wrapper so they stay visible and easy to click.
Pagination
Place data-mv-carousel-pagination on a wrapper; each dot is data-mv-carousel-pagination-item in slide order. Active item gets aria-current="true".
Autoplay
Autoplay respects prefers-reduced-motion: reduce (timer is not started). Hover and focus-in pause autoplay when data-mv-carousel-pause-on-hover is true (default).
Infinite loop
At the last slide, Next wraps to the first; at the first, Previous wraps to the last.
RTL
Set dir="rtl" on the root (or rely on document direction). Arrow keys follow visual next / previous in RTL.
Multiple slides
Use CSS (min-w-[45%], etc.) so several slides peek into the viewport; the component still advances one slide index per next/prev.
Centered
data-mv-carousel-centered="true" scrolls the active slide with inline: "center".
Draggable
Pointer-drag on the viewport scrolls horizontally. Not combined with snap in this API: when data-mv-carousel-snap="true", draggable behavior is disabled.
Drag horizontally on the track (snap is off).
Auto height
data-mv-carousel-auto-height="true" sets the viewport height from the active slide (see ResizeObserver in implementation).
Snap
Add Tailwind snap-x / snap-mandatory on the viewport and snap-center on items; enable data-mv-carousel-snap="true" so drag is not attached.
Viewport uses scroll snap; draggable is disabled when snap is on.
Info
data-mv-carousel-current and data-mv-carousel-total show 1-based current index and slide count.
Thumbnails (horizontal)
data-mv-carousel-thumbnails wraps controls; each data-mv-carousel-thumbnail maps to a slide by DOM order.
Thumbnails (vertical)
Same behavior with a column layout.
Destroy & reinitialize
Use MVCarousel.getInstance(root)?.dispose() then MVCarousel.getOrCreateInstance(root) after dynamic updates.
Clipboard
The Clipboard component provides declarative copy/cut-to-clipboard behavior (native Clipboard API + fallback) using `data-mv-clipboard*` attributes.
Copy value (input)
Copy value (inline)
Predefined text (text wins over target)
Predefined text (icon swap)
Cut value (input/textarea only)
Copy from arbitrary target
Code block
// Click to copy this block (plain text)
const answer = 42;
console.log(answer);
Tooltip feedback
Checkbox
A control that allows the user to toggle between checked and not checked.
Basic Usage
Checked
Disabled
Indeterminate
Mono
Size
Form
Collapse
Collapse component
Basic Usage
Click on the toggle button to expand the additional information in the collapsed content.
Show/Hide
Click on the toggle button to expand the additional information with show and hide indicator.
Tailwind DataTable
Sortable, searchable, paginated tables with optional row selection and loading state. Local mode reads rows from the table HTML; remote mode fetches pages from an API (page, size, sort, search, filters).
Basic usage
Local HTML rows with search, sort, pagination, and toolbar controls.
| Label | Method | Status | Last Session | |
|---|---|---|---|---|
| Guy Hawkins | Web | Approved | 22 Jul 2024 | |
| Sales Dept | SSH | Rejected | 18 Jul 2024 | |
| Legal Dept | Kerberos | Pending | 15 Jul 2024 | |
| Finance Dept | Token | Verified | 30 Jul 2024 | |
| Design Dept | API Key | Draft | 28 Jul 2024 | |
| Compliance Dept | FIDO U2F | In Review | 16 Jul 2024 | |
| Alice Smith | OpenID | Archived | 11 Aug 2024 | |
| HR Dept | Biometric | Active | 19 Jul 2024 | |
| Platform Team | Basic auth | Suspended | 06 Aug 2024 | |
| Security Ops | OAuth | Expiring | 01 Aug 2024 | |
| Data Team | SAML | Approved | 03 Aug 2024 | |
| Mobile Squad | LDAP | Rejected | 05 Aug 2024 | |
| Infra Bot | Passkey | Pending | 07 Aug 2024 | |
| QA Lab | Magic Link | Verified | 09 Aug 2024 | |
| Docs Guild | Smart Card | Draft | 10 Aug 2024 | |
| Support Tier 1 | WebAuthn | In Review | 12 Aug 2024 | |
| Release Train | Certificate | Archived | 14 Aug 2024 | |
| Archive User | FIDO2 | Active | 15 Aug 2024 |
Remote data
Rows from an API. See the demo.js tab for apiEndpoint, mapResponse, and custom columns.render. Default request query parameters: page, size, sortField, sortOrder, search, filters.
| Label | Method | Status | Last Session | IP Address |
|---|---|---|---|---|
| Guy Hawkins | Web | Approved | 22 Jul 2024 | 192.168.1.10 |
| Sales Dept | SSH | Rejected | 18 Jul 2024 | 192.168.1.11 |
| Legal Dept | Kerberos | Pending | 15 Jul 2024 | 192.168.1.2 |
| Finance Dept | Token | Verified | 30 Jul 2024 | 192.168.1.12 |
| Design Dept | API Key | Draft | 28 Jul 2024 | 10.0.0.2 |
| Compliance Dept | FIDO U2F | In Review | 16 Jul 2024 | 192.168.1.4 |
| Alice Smith | OpenID | Archived | 11 Aug 2024 | 192.168.1.13 |
| HR Dept | Biometric | Active | 19 Jul 2024 | 192.168.1.14 |
| Platform Team | Basic auth | Suspended | 06 Aug 2024 | 192.168.1.1 |
| Security Ops | OAuth | Expiring | 01 Aug 2024 | 10.0.0.5 |
| Data Team | SAML | Approved | 03 Aug 2024 | 10.0.0.6 |
| Mobile Squad | LDAP | Rejected | 05 Aug 2024 | 10.0.0.7 |
| Infra Bot | Passkey | Pending | 07 Aug 2024 | 10.0.0.8 |
| QA Lab | Magic Link | Verified | 09 Aug 2024 | 10.0.0.9 |
| Docs Guild | Smart Card | Draft | 10 Aug 2024 | 10.0.0.10 |
| Support Tier 1 | WebAuthn | In Review | 12 Aug 2024 | 10.0.0.11 |
| Release Train | Certificate | Archived | 14 Aug 2024 | 10.0.0.12 |
| Archive User | FIDO2 | Active | 15 Aug 2024 | 10.0.0.15 |
Row selection
Header checkbox plus per-row checkboxes.
| Label | Method | Status | Last Session | ||
|---|---|---|---|---|---|
| Guy Hawkins | Web | Approved | 22 Jul 2024 | ||
| Sales Dept | SSH | Rejected | 18 Jul 2024 | ||
| Legal Dept | Kerberos | Pending | 15 Jul 2024 | ||
| Finance Dept | Token | Verified | 30 Jul 2024 | ||
| Design Dept | API Key | Draft | 28 Jul 2024 | ||
| Compliance Dept | FIDO U2F | In Review | 16 Jul 2024 | ||
| Alice Smith | OpenID | Archived | 11 Aug 2024 | ||
| HR Dept | Biometric | Active | 19 Jul 2024 | ||
| Platform Team | Basic auth | Suspended | 06 Aug 2024 | ||
| Security Ops | OAuth | Expiring | 01 Aug 2024 | ||
| Data Team | SAML | Approved | 03 Aug 2024 | ||
| Mobile Squad | LDAP | Rejected | 05 Aug 2024 | ||
| Infra Bot | Passkey | Pending | 07 Aug 2024 | ||
| QA Lab | Magic Link | Verified | 09 Aug 2024 | ||
| Docs Guild | Smart Card | Draft | 10 Aug 2024 | ||
| Support Tier 1 | WebAuthn | In Review | 12 Aug 2024 | ||
| Release Train | Certificate | Archived | 14 Aug 2024 | ||
| Archive User | FIDO2 | Active | 15 Aug 2024 |
Locked columns
Keep critical left and right columns visible while horizontally scrolling wide tables.
| ID | Label | Method | Status | Last Session | IP Address | Region | Team |
|---|---|---|---|---|---|---|---|
| 1 | Accounting | Web | Pending | 22 Jul 2024 | 192.168.1.10 | EU-West | Ops |
| 2 | Compliance | SSH | Verified | 18 Jul 2024 | 192.168.1.11 | US-East | Security |
| 3 | Support | Kerberos | Draft | 15 Jul 2024 | 192.168.1.2 | APAC | Service |
| 4 | Legal | Token | In Review | 30 Jul 2024 | 192.168.1.12 | EU-Central | Audit |
| 5 | Sales | API Key | Archived | 28 Jul 2024 | 10.0.0.2 | US-West | Growth |
| 6 | Finance | FIDO U2F | Active | 16 Jul 2024 | 192.168.1.4 | MEA | Treasury |
| 7 | Operations | OpenID | Suspended | 11 Aug 2024 | 192.168.1.13 | LATAM | Platform |
| 8 | Marketing | Biometric | Expiring | 19 Jul 2024 | 192.168.1.14 | ANZ | Brand |
| 9 | Engineering | Basic auth | Approved | 06 Aug 2024 | 192.168.1.1 | EU-West | Product |
| 10 | Procurement | OAuth | Rejected | 01 Aug 2024 | 10.0.0.5 | US-East | Supply |
| 11 | HR | SAML | Pending | 03 Aug 2024 | 10.0.0.6 | APAC | People |
| 12 | IT | LDAP | Verified | 05 Aug 2024 | 10.0.0.7 | EU-Central | Infra |
| 13 | Security | Passkey | Draft | 07 Aug 2024 | 10.0.0.8 | US-West | Labs |
| 14 | Research | Magic Link | In Review | 09 Aug 2024 | 10.0.0.9 | MEA | Revenue |
| 15 | Logistics | Smart Card | Archived | 10 Aug 2024 | 10.0.0.10 | LATAM | Compliance |
| 16 | Customer Success | WebAuthn | Active | 12 Aug 2024 | 10.0.0.11 | ANZ | Ops |
| 17 | Partnerships | Certificate | Suspended | 14 Aug 2024 | 10.0.0.12 | EU-West | Security |
| 18 | Platform | FIDO2 | Expiring | 15 Aug 2024 | 10.0.0.15 | US-East | Service |
Locked rows
Keep the header and selected top/bottom rows fixed while vertically scrolling.
| ID | Label | Method | Status | Last Session | IP Address |
|---|---|---|---|---|---|
| 1 | Accounting | Web | Pending | 22 Jul 2024 | 192.168.1.10 |
| 2 | Compliance | SSH | Verified | 18 Jul 2024 | 192.168.1.11 |
| 3 | Support | Kerberos | Draft | 15 Jul 2024 | 192.168.1.2 |
| 4 | Legal | Token | In Review | 30 Jul 2024 | 192.168.1.12 |
| 5 | Sales | API Key | Archived | 28 Jul 2024 | 10.0.0.2 |
| 6 | Finance | FIDO U2F | Active | 16 Jul 2024 | 192.168.1.4 |
| 7 | Operations | OpenID | Suspended | 11 Aug 2024 | 192.168.1.13 |
| 8 | Marketing | Biometric | Expiring | 19 Jul 2024 | 192.168.1.14 |
| 9 | Engineering | Basic auth | Approved | 06 Aug 2024 | 192.168.1.1 |
| 10 | Procurement | OAuth | Rejected | 01 Aug 2024 | 10.0.0.5 |
| 11 | HR | SAML | Pending | 03 Aug 2024 | 10.0.0.6 |
| 12 | IT | LDAP | Verified | 05 Aug 2024 | 10.0.0.7 |
| 13 | Security | Passkey | Draft | 07 Aug 2024 | 10.0.0.8 |
| 14 | Research | Magic Link | In Review | 09 Aug 2024 | 10.0.0.9 |
| 15 | Logistics | Smart Card | Archived | 10 Aug 2024 | 10.0.0.10 |
| 16 | Customer Success | WebAuthn | Active | 12 Aug 2024 | 10.0.0.11 |
| 17 | Partnerships | Certificate | Suspended | 14 Aug 2024 | 10.0.0.12 |
| 18 | Platform | FIDO2 | Expiring | 15 Aug 2024 | 10.0.0.15 |
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
Tailwind Dismiss
Tailwind Dismiss component allows users to hide elements like alerts or notifications with a click.
Basic Usage
Dismiss the element with a smooth transition, ensuring it is removed from the DOM.
Hide Mode
Dismiss the element with a smooth transition, ensuring it is hidden with .hidden Tailwind Class.
Attention Required!
Please review the details to resolve the issue
Drawer
Drawer component
DEFAULT
Dropdown
Dropdown component
DEFAULT
Image Input
Image Input component
DEFAULT
Input
Renders a clickable input or an element styled as a input.
Basic Usage
Disabled
Readonly
File
Icon
Group
Error
Size
Form
Input Number
Numeric field with KtUI lifecycle on the native input[type=number], optional decrement/increment buttons, and custom events. Not the wizard Stepper—see Stepper for multi-step flows.
Basic
Initialize on a wrapper that contains one input[type="number"], or put data-mv-input-number on the input itself.
Min, max, and step
Use native min, max, and step on the number input. Optional + / − controls use the browser’s stepUp() / stepDown() so behavior matches native constraints.
Native min,
max, and
step apply to typing and spinners.
With buttons
Pair data-mv-input-number-decrement and data-mv-input-number-increment with accessible names (aria-label or visible text) on the buttons.
Disabled
Use the native disabled attribute on the input. Decrement/increment handlers no-op while disabled.
Native disabled —
increment/decrement hooks are ignored.
Kbd
Displays keyboard input or shortcut keys with customizable styles and sizes.
Basic Usage
Outline
Size
Link
Renders a clickable label or button styled as a hiperlink.
Basic Usage
Underline
Underlined
Dashed
Inverse
Mono
Disabled
Modal
Modal component
DEFAULT
Pagination
Displays a hierarchy of links to the current page or resource in an application.
Pin Input
Multi-field PIN and OTP entry with MVUI keyboard navigation, paste distribution, optional character filtering, and hidden-field form sync.
Basic
Placeholder
Gray variant
Underline variant
Focus scale
Lengths (3, 5, 7)
Regex subset (digits 0–3)
Telephone number
Ten numeric cells with type="tel" and inputMode="numeric" so mobile browsers show the phone-style keypad. Paste distributes digits across cells.
Enter a 10-digit number
Alphanumeric (10 characters)
Ten cells with data-mv-pin-input-available-chars="[0-9a-zA-Z]" and inputMode="text" for mixed codes (e.g. product keys). Letters are normalized to uppercase in this demo via CSS.
Masked (type="password")
iOS OTP hint
Disabled
Sizes
Hidden field (forms)
In modal
Progress
Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
Basic Usage
Variants
Radio Group
A set of checkable buttons where only one can be checked at a time.
Basic Usage
Disabled
Mono
Size
Form
Range Slider
Single-thumb range control built on the native input[type=range] with MVUI lifecycle, optional value output, and a CSS variable for track fill.
Basic
Initialize on a wrapper that contains one input[type="range"]. The component stores --mv-range-fill on the root (0–1) so you can drive a visual track or theme styles.
With output
Point data-mv-range-slider-output at a selector for an element whose text updates on input and change (searched under the root first, then document).
Disabled
Use the native disabled attribute on the range input. The control stays a real form field; avoid replacing it with a non-focusable custom thumb.
Native disabled — no pointer events;
keyboard focus depends on the browser.
Stepped bounds
Define explicit min, max, and step values to constrain user input to predictable increments.
Uses native bounds with
min=10,
max=90, and
step=5.
Datalist ticks
Use native list and
Native tick marks via list +
<datalist>.
Form integration
Keep the range input in a standard form so submission and readout work with native semantics.
Submit to read native form data.
Programmatic update
Use external controls to set preset values while keeping slider output in sync.
Tailwind Rating
The Rating component displays and collects numeric ratings (e.g. 1–5 stars) with optional custom symbols. Use it for reviews, feedback forms, and satisfaction displays in readonly or interactive mode.
Basic Usage
Use data-MV-rating to render an interactive star rating. The selected value is available for form submission and via the MV.rating.change event.
Readonly
Display a fixed rating (e.g. 3 of 5 stars) with data-MV-rating-readonly="true" and data-MV-rating-value="3".
Custom Symbol
Use data-MV-rating-symbol="heart" to show hearts instead of stars.
Reparent
Tailwind Reparent component enables responsive parent switching, allowing you to move elements to different containers at specific screen sizes.
Basic Usage
Resize your browser or the preview panel to see content switch parents based on breakpoint-prefixed data-mv-reparent-target and data-mv-reparent-mode values (or matching CSS custom properties).
default
sm
Responsive
Drag the preview edge to resize. Content reparents between the labeled slots
at
default,
sm, and
md breakpoints.
default
sm
md
Mobile Menu
Both slots stay visible. Drag the preview edge to resize — below
sm the shared nav moves into the mobile
slot; at
sm+ it moves into the header slot.
Repeater
Tailwind Repeater component adds repeatable form blocks. Click an "Add" button to clone a template into a container, with optional limit and per-item remove.
Basic Usage
Click "Add item" to clone the input block into the container. A limit of 3 is set so the trigger disables after three clones.
Predefined Markup
The template lives in a hidden container; only clones appear in the wrapper when you click "Add row".
With Delete
Each cloned block includes a remove control. Use data-MV-repeater-delete on the element that should remove its block.
On Modal
Use a repeater inside a modal to collect multiple items (e.g. guests) before submitting. Open the modal, add or remove rows, then submit or cancel.
Scrollable
Scrollable component
Basic
To implement a custom scrollable content with a fixed height, simply utilize the mv-scrollable custom class. This class is designed to create a improved scrollable area within your HTML document.
Horizontal
Below example demonstrates horizontally scrollable content.
Both Scrollbars
Below example demonstrates a scrollable content with bith horizontal and vertical scrollbars.
Auto Height
Use data-mv-scrollable="true" to auto initialize the Tailwind MVScrollable component that dynamically calculates the height of the scrollable content by subtracting the the total heights of specific elements defined via data-mv-scrollable-dependencies="#header, #footer" the total spacings of specific elements defined via data-mv-scrollable-wrappers="#header, #footer" within the HTML document.
With modal
Custom
Customize the scrollbar thumb color to match your design requirements using the CSS variable for default and dark demos using [--tw-scrollbar-thumb-color:red] and [--tw-scrollbar-thumb-color-dark:yellow] classes.
Scrollspy
Scrollspy component
Scrollto
Scrollto component
Basic
Scroll To Target
Advanced Select
MVSelect is a feature-rich, customizable dropdown component built with modern web standards. It offers single/multiple selection, search, and rich icon support with various styling options.
Features
Basic Usage
The most common use case - selecting one option from a dropdown.
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
DEFAULT
Separator
Visually or semantically separates content into groups.
Basic Usage
MVUI
A free MVUI component library.
Vertical
With Label
Sign In
Use your account credentials or continue with a provider.
With Label Left
Inset
Account Settings
Manage profile and security preferences.
List Divider
Recent Activity
In Card
Storage Usage
72% of 100 GB used
Section Divider
Profile Overview
Basic account details and communication preferences.
Security Settings
Password, sessions, and multi-factor authentication options.
Skeleton
Used to show a placeholder while content is loading.
Basic Usage
Card
List
Table
Paragraph
Avatar Row
Gallery
Profile
With Content
Demonstrates a realistic skeleton-to-content swap pattern.
Media Object
Stats KPI
Comment Thread
Form Section
Stepper
Tailwind Stepper component provides a visually intuitive way to guide users through multi-step processes or forms. Utilizing Tailwind's utility classes, it offers customizable styles for each step, making it easy to indicate progress and navigate between steps.
Basic Usage
Vertical
With Icons
On Modal
Programmatic
Click a step number to jump via
MVStepper.getOrCreateInstance(...).go(n).
Sticky
Sticky component
DEFAULT
Switch
A control that allows the user to toggle between checked and unchecked states.
Basic Usage
Checked
Disabled
Error
Mono
Size
Form
Tailwind Tabs
Tailwind Tabs component provides a user-friendly and efficient way to organize content into separate, easily navigable sections. By using tabs, you can create a clean and organized interface, allowing users to quickly switch between different content areas without navigating away from the page.
Basic Tabs
A basic Tailwind Tabs example to navigate between different content areas.
Icons
Enhance your Tailwind Tabs by integrating icons for a more intuitive and visually engaging navigation experience.
Transition
Enable smooth transition effects using Tailwind Transition classes to enhance the user experience of Tailwind Tabs.
Button
Integrate Tailwind Tabs with the Tailwind Button component to enable a more focused and cohesive navigation style.
Dropdown Menu
Integrate Tailwind Tabs with the Tailwind Dropdown component to enable advanced navigation support.
Textarea
Textarea component
Basic
Disabled
Read Only
Error
Size
Form
Theme Switch
Theme Switch component
Menu
Utilize the data-mv-theme-switch-toggle="light" and data-mv-theme-switch-toggle="dark" attributes on an element to toggle the theme mode upon clicking.
The following example illustrates a menu offering the option to select a theme mode from dark , light , and system preferences.
Toast
Toast component
DEFAULT
Tailwind Tooltip
Tailwind Tooltip provides users with contextual information or additional details when they hover over or interact with an element on a page. It typically appears as a small pop-up box near the element being hovered over, containing relevant information such as explanations, hints, or descriptions.
Base
Click the below toggle button to reveal external tooltip.
External Tooltip
Click the below toggle button to reveal external tooltip.
Transition
Use Tailwind Transition classes to achieve smooth transitions for your tooltips' appearance.
Advanced Content
The tooltip content can consist of any HTML element, rather than being limited to simple text.
Light Style
Remove the default class tooltip and utilize Tailwind classes to completely customize the appearance and style of your tooltips.
Popover
Replace the default tooltip class with popover to transform a basic tooltip into a more comprehensive popover, featuring a heading and detailed content.
Placement
Use data-mv-tooltip-placement attribute with left , right , top,bottom` values control the tooltip display direction.
Trigger Options
Enhance tooltip functionality by utilizing the data-mv-tooltip-trigger attribute with either click or focus to tailor tooltip activation to your preference. By default, tooltips are triggered on hover .
Offset
Use data-mv-tooltip-offset="20px,20px" attribute to add distance between the toggle and tooltip element. The pair of x,y value in pixel translates the floating element along the x and y axes.
Delay
Set custom delay timeouts for displaying and hiding tooltips using the data-mv-tooltip-delay-show="1000" and data-mv-tooltip-delay-hide="1000" attributes, specified in milliseconds. The below examples shows and hides the tooltip with 1000ms(1 second) delay.
Permanent
Use the data-mv-tooltip-permanent="true" attribute to set tooltips remain persistent and do not close when clicked outside. This feature is exclusive to tooltips triggered by clicking, specified with data-mv-tooltip-trigger="click" .
Tailwind Toggle
The Tailwind Toggle component allows users to easily toggle the visibility of elements, providing seamless control over hiding and showing content.
Basic Usage
Utilize the data-mv-toggle="#my_toggle_element" attribute with an ID selector and data-mv-toggle-class="hidden" ttribute to theme the referenced element's visibilty.
Hidden
Set the referenced element to be hidden by default by applying the hidden class
Appearance
Utilize data-mv-toggle-class="border border-red-600 bg-green-700" attribute with Tailwind classes to change the referenced element's appearance.
Toggle Group
Toggle Group component
Basic Usage
Multiple
Tailwind Toggle Password
The Tailwind Toggle Password component allows users to easily switch between displaying and hiding their password input. This enhances security and user experience by providing a clear and intuitive way to manage password visibility.
Basic Usage
A basic usage of Tailwind Toggle Password component.
Permanent
Use data-mv-toggle-password-permanent="true" attribute to set whether the password remains visible once unmasked, even after typing begins.