Scroll Area
A scroll container that hides the scrollbar by default, or renders a slim custom one. Pass showScrollbar for Stepwise's minimal scrollbar instead - a fully transparent track with a slim rounded thumb that darkens when you hover or drag it. Theme-aware and self-contained; it's what powers the scroll region inside Command Palette.
Installation
npx stepwise-ui add scroll-area
Vertical
Horizontal
Props
PropTypeDescription
maxHeightnumber | stringCap the height and scroll vertically past it.
maxWidthnumber | stringCap the width and scroll horizontally past it - for axis="x" or "both".
axis'y' | 'x' | 'both'Scroll axis. Default y.
showScrollbarbooleanShow the thumb instead of scrolling invisibly. Default false.
classNamestringMerged onto the scroll container.