Capítulo 28 de 43
Cross-browser custom-styled scrollbars over genuinely native scrolling — the scrollbar overlays content (taking no layout space) while actual scroll physics/keyboard behavior stay native, unlike JS-position-transform scroll libraries.
Root → Viewport (the scrollable content container) + Scrollbar (one per axis, orientation="vertical"/"horizontal") → Thumb, plus Corner where both scrollbars meet.type (default "hover"): controls scrollbar visibility behavior — options typically range from always-visible to hover/scroll-triggered, auto-hiding after scrollHideDelay.[data-state] on Scrollbar/Thumb: "visible" | "hidden" — drives fade-in/out styling for auto-hiding scrollbars.scrollbar-width, ::-webkit-scrollbar) first — reach for ScrollArea specifically when you need truly cross-browser custom-styled scrollbars that plain CSS can't achieve consistently.Scrollbar/Thumb/Corner.Scrollbar with orientation="horizontal" to support both axes; Corner fills the gap where they intersect.