Scroll Area
Disclosure & Layout · Guide 5 of 46
Open the live Scroll Area demo →
Purpose
Custom scrollbars that behave like native ones.
Import
<script lang="ts">
import { ScrollArea } from 'bits-ui';
</script>The registry names ScrollArea as this guide’s namespace. Copy the exact root and part composition from the live demo rather than guessing part names.
Usage checklist
- Keep the reading and focus order logical with styles disabled.
- Preserve keyboard behavior and control-to-content relationships for interactive parts.
- Check constrained widths, overflow, and reduced-motion behavior.
Secondary reference
After using the local example, consult the upstream Bits UI reference for exhaustive API details.
Continue
- Previous: Aspect Ratio
- Index: All component guides
- Next: Separator