Implement Accordion and Tabs components
The Accordion and Tabs components were introduced in version 1.5.0. Additionally, radio tab support was added in a later refactor (v1.11.0).
website·Indexed 32 days ago
https://ripple-ui.com/A TailwindCSS-based UI library providing a comprehensive set of components including buttons, modals, navbars, tables, and forms. It offers a default theme with customization options and can be installed via npm, yarn, or CDN.
backgroundPrimary and the text color is set to content1.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/rippleui@1.12.1/dist/css/styles.css" /><textarea> element. The base class textarea must be present for all styles to apply correctly.<!-- Basic Textarea -->
<textarea class="textarea" placeholder="Welcome!" />
<!-- Disabled Textarea -->
<textarea class="textarea" placeholder="Disabled" disabled />value attribute. Because browser support for indeterminate <progress> elements varies, it is recommended to use a div with the progress-indeterminate class for cross-browser compatibility (Safari, Firefox, etc.).<!-- Works on Edge or Chrome -->
<progress class="progress"></progress>
<!-- Recommended for Safari, Firefox, and other browsers -->
<div class="progress progress-indeterminate"></div>range-vertical class. Note that you must explicitly set a height or margin (e.g., using utility classes like mt-14) for the vertical range to display correctly.<input type="range" class="range range-vertical mt-14" />rippleui to the plugins array in your tailwind.config.js file to enable its styles.npm install rippleui// tailwind.config.js
module.exports = {
// ... the rest of your config
plugins: [require("rippleui")],
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/rippleui@1.12.1/dist/css/styles.css" />
<script src="https://cdn.tailwindcss.com"></script>
<button class="btn btn-primary">Hello World!</button>dot class and optional color modifier classes to represent different states (e.g., success, error, warning).<!-- Default dot -->
<span class="dot"></span>
<!-- Colored dots -->
<span class="dot dot-primary"></span>
<span class="dot dot-secondary"></span>
<span class="dot dot-success"></span>
<span class="dot dot-warning"></span>
<span class="dot dot-error"></span>.tabs container in a div with overflow-auto and apply flex-nowrap to the tabs container to enable horizontal scrolling.<div class="w-full max-w-xs overflow-auto">
<div class="tabs w-full flex-nowrap">
<div class="tab">Tab 1</div>
<div class="tab tab-underline tab-active">Tab 2</div>
<div class="tab">Tab 3</div>
<div class="tab">Tab 4</div>
<div class="tab">Tab 5</div>
</div>
</div>menu-toggle class. The label associated with the checkbox acts as the trigger, and the content to be toggled is wrapped in a div with the menu-item-collapse class.<li>
<input type="checkbox" id="menu-1" class="menu-toggle" />
<label class="menu-item justify-between" for="menu-1">
<span>General</span>
<span class="menu-icon">
<svg class="w-4 h-4 stroke-content3">...</svg>
</span>
</label>
<div class="menu-item-collapse">
<div class="min-h-0">
<label class="menu-item ml-6">Accounts</label>
<label class="menu-item ml-6">Billing</label>
</div>
</div>
</li>