ScrollView
Custom scrollable containers with styled scrollbars, auto-hide behavior, and scroll indicators.
Interactive
Requires:
veritheme.js
JS init: automatic
Vertical Scroll
A list that scrolls inside a fixed height, with a thin custom scrollbar.
html
-
AJAlex Johnson alex@example.com
-
SCSarah Chen sarah@example.com
-
MLMarcus Lee marcus@example.com
-
EDEmily Davis emily@example.com
-
DKDavid Kim david@example.com
-
LWLisa Wang lisa@example.com
-
RPRyan Patel ryan@example.com
-
MTMia Torres mia@example.com
<ul class="vt-list vt-scroll vt-h-64 vt-max-w-md" tabindex="0" aria-label="Team members">
<li class="vt-list-item">
<div class="vt-avatar vt-avatar-md">AJ</div>
<div class="vt-list-item-content">
<span class="vt-list-item-title">Alex Johnson</span>
<span class="vt-list-item-description">alex@example.com</span>
</div>
</li><li class="vt-list-item">
<div class="vt-avatar vt-avatar-md">SC</div>
<div class="vt-list-item-content">
<span class="vt-list-item-title">Sarah Chen</span>
<span class="vt-list-item-description">sarah@example.com</span>
</div>
</li><li class="vt-list-item">
<div class="vt-avatar vt-avatar-md">ML</div>
<div class="vt-list-item-content">
<span class="vt-list-item-title">Marcus Lee</span>
<span class="vt-list-item-description">marcus@example.com</span>
</div>
</li><li class="vt-list-item">
<div class="vt-avatar vt-avatar-md">ED</div>
<div class="vt-list-item-content">
<span class="vt-list-item-title">Emily Davis</span>
<span class="vt-list-item-description">emily@example.com</span>
</div>
</li><li class="vt-list-item">
<div class="vt-avatar vt-avatar-md">DK</div>
<div class="vt-list-item-content">
<span class="vt-list-item-title">David Kim</span>
<span class="vt-list-item-description">david@example.com</span>
</div>
</li><li class="vt-list-item">
<div class="vt-avatar vt-avatar-md">LW</div>
<div class="vt-list-item-content">
<span class="vt-list-item-title">Lisa Wang</span>
<span class="vt-list-item-description">lisa@example.com</span>
</div>
</li><li class="vt-list-item">
<div class="vt-avatar vt-avatar-md">RP</div>
<div class="vt-list-item-content">
<span class="vt-list-item-title">Ryan Patel</span>
<span class="vt-list-item-description">ryan@example.com</span>
</div>
</li><li class="vt-list-item">
<div class="vt-avatar vt-avatar-md">MT</div>
<div class="vt-list-item-content">
<span class="vt-list-item-title">Mia Torres</span>
<span class="vt-list-item-description">mia@example.com</span>
</div>
</li>
</ul>
Horizontal Scroll
Drag to scroll horizontally by holding the left mouse button.
html
Mountain Lake
Nature photography
Forest Path
Landscape series
Sunset Beach
Travel collection
City Lights
Urban exploration
Ocean View
Seascape shots
Desert Dunes
Aerial collection
<div class="vt-scroll vt-drag-scroll vt-overflow-y-hidden vt-max-w-lg" tabindex="0" aria-label="Photo collections">
<div class="vt-flex vt-gap-3 vt-w-max vt-pb-3">
<div class="vt-card vt-w-56 vt-shrink-0">
<div class="vt-card-body">
<h3 class="vt-card-title">Mountain Lake</h3>
<p class="vt-card-description">Nature photography</p>
</div>
</div><div class="vt-card vt-w-56 vt-shrink-0">
<div class="vt-card-body">
<h3 class="vt-card-title">Forest Path</h3>
<p class="vt-card-description">Landscape series</p>
</div>
</div><div class="vt-card vt-w-56 vt-shrink-0">
<div class="vt-card-body">
<h3 class="vt-card-title">Sunset Beach</h3>
<p class="vt-card-description">Travel collection</p>
</div>
</div><div class="vt-card vt-w-56 vt-shrink-0">
<div class="vt-card-body">
<h3 class="vt-card-title">City Lights</h3>
<p class="vt-card-description">Urban exploration</p>
</div>
</div><div class="vt-card vt-w-56 vt-shrink-0">
<div class="vt-card-body">
<h3 class="vt-card-title">Ocean View</h3>
<p class="vt-card-description">Seascape shots</p>
</div>
</div><div class="vt-card vt-w-56 vt-shrink-0">
<div class="vt-card-body">
<h3 class="vt-card-title">Desert Dunes</h3>
<p class="vt-card-description">Aerial collection</p>
</div>
</div>
</div>
</div>
Both Directions
Container that scrolls in both directions for large content areas.
html
| ID | Name | Department | Role | Salary | |
|---|---|---|---|---|---|
| 001 | Alex Johnson | alex@co.com | Engineering | Senior Dev | $120,000 |
| 002 | Sarah Chen | sarah@co.com | Design | Lead Designer | $105,000 |
| 003 | Marcus Lee | marcus@co.com | Marketing | Manager | $95,000 |
| 004 | Emily Davis | emily@co.com | Engineering | Frontend Dev | $98,000 |
| 005 | David Kim | david@co.com | Product | PM | $110,000 |
| 006 | Lisa Wang | lisa@co.com | Engineering | Backend Dev | $115,000 |
| 007 | Ryan Patel | ryan@co.com | Sales | Account Exec | $88,000 |
| 008 | Mia Torres | mia@co.com | HR | HR Manager | $92,000 |
<div class="vt-card vt-max-w-md">
<div class="vt-scroll vt-h-48 vt-p-4" tabindex="0" aria-label="Staff">
<div class="vt-w-max">
<table class="vt-table vt-table-compact">
<thead>
<tr>
<th class="vt-whitespace-nowrap">ID</th>
<th class="vt-whitespace-nowrap">Name</th>
<th class="vt-whitespace-nowrap">Email</th>
<th class="vt-whitespace-nowrap">Department</th>
<th class="vt-whitespace-nowrap">Role</th>
<th class="vt-text-right vt-whitespace-nowrap">Salary</th>
</tr>
</thead>
<tbody>
<tr><td class="vt-whitespace-nowrap">001</td><td class="vt-whitespace-nowrap vt-font-medium">Alex Johnson</td><td class="vt-whitespace-nowrap vt-text-foreground-muted">alex@co.com</td><td class="vt-whitespace-nowrap">Engineering</td><td class="vt-whitespace-nowrap">Senior Dev</td><td class="vt-text-right vt-whitespace-nowrap">$120,000</td></tr><tr><td class="vt-whitespace-nowrap">002</td><td class="vt-whitespace-nowrap vt-font-medium">Sarah Chen</td><td class="vt-whitespace-nowrap vt-text-foreground-muted">sarah@co.com</td><td class="vt-whitespace-nowrap">Design</td><td class="vt-whitespace-nowrap">Lead Designer</td><td class="vt-text-right vt-whitespace-nowrap">$105,000</td></tr><tr><td class="vt-whitespace-nowrap">003</td><td class="vt-whitespace-nowrap vt-font-medium">Marcus Lee</td><td class="vt-whitespace-nowrap vt-text-foreground-muted">marcus@co.com</td><td class="vt-whitespace-nowrap">Marketing</td><td class="vt-whitespace-nowrap">Manager</td><td class="vt-text-right vt-whitespace-nowrap">$95,000</td></tr><tr><td class="vt-whitespace-nowrap">004</td><td class="vt-whitespace-nowrap vt-font-medium">Emily Davis</td><td class="vt-whitespace-nowrap vt-text-foreground-muted">emily@co.com</td><td class="vt-whitespace-nowrap">Engineering</td><td class="vt-whitespace-nowrap">Frontend Dev</td><td class="vt-text-right vt-whitespace-nowrap">$98,000</td></tr><tr><td class="vt-whitespace-nowrap">005</td><td class="vt-whitespace-nowrap vt-font-medium">David Kim</td><td class="vt-whitespace-nowrap vt-text-foreground-muted">david@co.com</td><td class="vt-whitespace-nowrap">Product</td><td class="vt-whitespace-nowrap">PM</td><td class="vt-text-right vt-whitespace-nowrap">$110,000</td></tr><tr><td class="vt-whitespace-nowrap">006</td><td class="vt-whitespace-nowrap vt-font-medium">Lisa Wang</td><td class="vt-whitespace-nowrap vt-text-foreground-muted">lisa@co.com</td><td class="vt-whitespace-nowrap">Engineering</td><td class="vt-whitespace-nowrap">Backend Dev</td><td class="vt-text-right vt-whitespace-nowrap">$115,000</td></tr><tr><td class="vt-whitespace-nowrap">007</td><td class="vt-whitespace-nowrap vt-font-medium">Ryan Patel</td><td class="vt-whitespace-nowrap vt-text-foreground-muted">ryan@co.com</td><td class="vt-whitespace-nowrap">Sales</td><td class="vt-whitespace-nowrap">Account Exec</td><td class="vt-text-right vt-whitespace-nowrap">$88,000</td></tr><tr><td class="vt-whitespace-nowrap">008</td><td class="vt-whitespace-nowrap vt-font-medium">Mia Torres</td><td class="vt-whitespace-nowrap vt-text-foreground-muted">mia@co.com</td><td class="vt-whitespace-nowrap">HR</td><td class="vt-whitespace-nowrap">HR Manager</td><td class="vt-text-right vt-whitespace-nowrap">$92,000</td></tr>
</tbody>
</table>
</div>
</div>
</div>
Hidden Scrollbar
Scrollable content with no visible scrollbar. Drag to scroll.
html
AllDesignDevelopmentMarketingProductResearchAnalyticsSalesSupportOperations
<div class="vt-scroll vt-scroll-hidden vt-drag-scroll vt-overflow-y-hidden vt-max-w-lg" tabindex="0" aria-label="Topics">
<div class="vt-flex vt-gap-2 vt-w-max">
<span class="vt-chip vt-chip-active">All</span><span class="vt-chip">Design</span><span class="vt-chip">Development</span><span class="vt-chip">Marketing</span><span class="vt-chip">Product</span><span class="vt-chip">Research</span><span class="vt-chip">Analytics</span><span class="vt-chip">Sales</span><span class="vt-chip">Support</span><span class="vt-chip">Operations</span>
</div>
</div>
Auto-hide Scrollbar
Scrollbar that only appears on hover for a cleaner look.
html
- Project Brief.pdf
- Design System.fig
- API Documentation.md
- Wireframes.sketch
- Sprint Planning.xlsx
- Brand Guidelines.pdf
- User Research.pdf
- Roadmap Q1.pptx
<ul class="vt-list vt-scroll vt-scroll-autohide vt-h-56 vt-max-w-md" tabindex="0" aria-label="Files">
<li class="vt-list-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-icon" aria-hidden="true">
<path d="M8 18H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 14H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 10H10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
<span class="vt-list-item-title">Project Brief.pdf</span>
<span class="vt-list-item-meta">2.4 MB</span>
</li><li class="vt-list-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-icon" aria-hidden="true">
<path d="M8 18H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 14H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 10H10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
<span class="vt-list-item-title">Design System.fig</span>
<span class="vt-list-item-meta">18.7 MB</span>
</li><li class="vt-list-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-icon" aria-hidden="true">
<path d="M8 18H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 14H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 10H10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
<span class="vt-list-item-title">API Documentation.md</span>
<span class="vt-list-item-meta">156 KB</span>
</li><li class="vt-list-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-icon" aria-hidden="true">
<path d="M8 18H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 14H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 10H10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
<span class="vt-list-item-title">Wireframes.sketch</span>
<span class="vt-list-item-meta">34.2 MB</span>
</li><li class="vt-list-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-icon" aria-hidden="true">
<path d="M8 18H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 14H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 10H10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
<span class="vt-list-item-title">Sprint Planning.xlsx</span>
<span class="vt-list-item-meta">890 KB</span>
</li><li class="vt-list-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-icon" aria-hidden="true">
<path d="M8 18H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 14H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 10H10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
<span class="vt-list-item-title">Brand Guidelines.pdf</span>
<span class="vt-list-item-meta">5.1 MB</span>
</li><li class="vt-list-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-icon" aria-hidden="true">
<path d="M8 18H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 14H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 10H10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
<span class="vt-list-item-title">User Research.pdf</span>
<span class="vt-list-item-meta">3.3 MB</span>
</li><li class="vt-list-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-icon" aria-hidden="true">
<path d="M8 18H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 14H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 10H10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
<span class="vt-list-item-title">Roadmap Q1.pptx</span>
<span class="vt-list-item-meta">12.8 MB</span>
</li>
</ul>
With Scroll Indicators
Fade effect on edges indicating more content is available.
html
-
January Revenue: $12,400
-
February Revenue: $15,200
-
March Revenue: $18,900
-
April Revenue: $14,600
-
May Revenue: $21,300
-
June Revenue: $19,800
-
July Revenue: $23,100
-
August Revenue: $20,500
-
September Revenue: $17,600
-
October Revenue: $22,400
-
November Revenue: $25,100
-
December Revenue: $28,700
MonTueWedThuFriSatSunNext MonNext TueNext Wed
<div class="vt-flex vt-flex-col vt-gap-6 vt-w-full vt-max-w-md">
<!-- Vertical indicators -->
<div class="vt-scroll-indicator vt-show-bottom" id="v-indicator">
<ul class="vt-scroll vt-h-48" id="v-scroll" tabindex="0" aria-label="Revenue by month">
<li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">January</span>
<span class="vt-list-item-description">Revenue: $12,400</span>
</div>
</li><li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">February</span>
<span class="vt-list-item-description">Revenue: $15,200</span>
</div>
</li><li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">March</span>
<span class="vt-list-item-description">Revenue: $18,900</span>
</div>
</li><li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">April</span>
<span class="vt-list-item-description">Revenue: $14,600</span>
</div>
</li><li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">May</span>
<span class="vt-list-item-description">Revenue: $21,300</span>
</div>
</li><li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">June</span>
<span class="vt-list-item-description">Revenue: $19,800</span>
</div>
</li><li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">July</span>
<span class="vt-list-item-description">Revenue: $23,100</span>
</div>
</li><li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">August</span>
<span class="vt-list-item-description">Revenue: $20,500</span>
</div>
</li><li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">September</span>
<span class="vt-list-item-description">Revenue: $17,600</span>
</div>
</li><li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">October</span>
<span class="vt-list-item-description">Revenue: $22,400</span>
</div>
</li><li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">November</span>
<span class="vt-list-item-description">Revenue: $25,100</span>
</div>
</li><li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">December</span>
<span class="vt-list-item-description">Revenue: $28,700</span>
</div>
</li>
</ul>
</div>
<!-- Horizontal indicators -->
<div class="vt-scroll-indicator-h vt-show-right" id="h-indicator">
<div class="vt-scroll vt-scroll-hidden vt-drag-scroll vt-overflow-y-hidden" id="h-scroll" tabindex="0" aria-label="Days">
<div class="vt-flex vt-gap-2 vt-w-max">
<span class="vt-chip vt-chip-active">Mon</span><span class="vt-chip">Tue</span><span class="vt-chip">Wed</span><span class="vt-chip">Thu</span><span class="vt-chip">Fri</span><span class="vt-chip">Sat</span><span class="vt-chip">Sun</span><span class="vt-chip">Next Mon</span><span class="vt-chip">Next Tue</span><span class="vt-chip">Next Wed</span>
</div>
</div>
</div>
</div>
Guidelines
- Project Brief.pdf
- Design System.fig
- API Documentation.md
- Wireframes.sketch
- Sprint Planning.xlsx
- Brand Guidelines.pdf
- Project Brief.pdf
- Design System.fig
- API Documentation.md
- Wireframes.sketch
- Sprint Planning.xlsx
- Brand Guidelines.pdf
API Reference
| Class | Type | Description |
|---|---|---|
vt-scroll |
Base | Scrolls its content with a thin styled bar: 6px, the thumb in the border color, 4px radius, darker on hover. Give the area a height (or a width) from the page |
vt-scroll-hidden |
Modifier | Scrolls with no visible bar |
vt-scroll-autohide |
Modifier | Shows the thumb only while the pointer is over the area |
vt-overflow-y-hidden |
Utility | Horizontal-only scrolling — keeps the area from scrolling vertically |
vt-drag-scroll |
Modifier | Drag the content sideways with the mouse (JS bundle); grab cursor |
vt-scroll-indicator |
Part | Wraps a vertical scroll area and fades its top and bottom edges, 32px |
vt-scroll-indicator-h |
Part | Wraps a horizontal scroll area and fades its left and right edges, 32px |
vt-show-top/vt-show-bottom |
State | Shows that edge of a vertical indicator (set by the JS bundle while more content lies that way) |
vt-show-left/vt-show-right |
State | Shows that edge of a horizontal indicator |
Accessibility
| Feature | Details |
|---|---|
| Role | Scrollable container should have tabindex="0" for keyboard access |
| Label | Add aria-label describing the scrollable area content |
| Keyboard | Arrow keys scroll the content when container is focused |
| Indicators | Scroll indicators should be aria-hidden="true" as they are decorative |