Scroll Area
Surfaces bits-uiA scroll container with a slim glass bar.
Example
Clear waters
- Lake Baikal
- Crater Lake
- Lake Tahoe
- Lake Bled
- Lake Louise
- Plitvice Lakes
- Lake Wakatipu
- Lago di Braies
- Moraine Lake
- Lake Hallstatt
- Lake Geneva
- Lake Como
- Lake Atitlan
- Lake Pukaki
- Lake Bohinj
<script lang="ts">
import { ScrollArea } from '$lib/components/ui/scroll-area';
const lakes = [
'Lake Baikal',
'Crater Lake',
'Lake Tahoe',
'Lake Bled',
'Lake Louise',
'Plitvice Lakes',
'Lake Wakatipu',
'Lago di Braies',
'Moraine Lake',
'Lake Hallstatt',
'Lake Geneva',
'Lake Como',
'Lake Atitlan',
'Lake Pukaki',
'Lake Bohinj'
];
</script>
<ScrollArea class="h-56 w-56 rounded-xl border border-border glass">
<div class="p-4">
<h4 class="mb-3 text-sm font-semibold">Clear waters</h4>
<ul class="space-y-2 text-sm text-muted-foreground">
{#each lakes as lake (lake)}
<li class="border-b border-border pb-2 last:border-0">{lake}</li>
{/each}
</ul>
</div>
</ScrollArea>Installation
npx shadcn-svelte@latest add https://mizu-ui.com/r/scroll-area.json