Scroll Area

The ArcadiaScrollArea component provides a scrollable container with configurable height, width, and scroll orientation.

Basic Usage

<ArcadiaScrollArea Height="300px">
    <div>Lots of content that will scroll vertically...</div>
</ArcadiaScrollArea>

<ArcadiaScrollArea Height="200px" Width="100%" Orientation="both" HideScrollbar="true">
    <div style="width: 1500px;">Wide content that scrolls both ways.</div>
</ArcadiaScrollArea>

Parameters

ParameterTypeDefaultDescription
ChildContentRenderFragment?nullContent rendered inside the scroll area.
Heightstring?nullMaximum height (e.g., "300px", "50vh").
Widthstring?nullWidth (e.g., "100%", "400px").
Orientationstring"vertical"Scroll orientation: "vertical", "horizontal", "both".
HideScrollbarboolfalseWhether to auto-hide the scrollbar.
Classstring?nullAdditional CSS class names.
Stylestring?nullInline CSS styles.

Accessibility

  • The scroll area has tabindex="0", enabling keyboard scrolling (arrow keys, Page Up/Down).
  • Respects the Orientation parameter for scrollbar display.