RRobloxUI
BrowseThemeSubmit
RRobloxUI β€” Roblox UI Components Marketplace
Theme ReferencePrivacy
Scrolling Frame Container β€” RobloxUI
  1. Home
  2. /
  3. Containers
  4. /
  5. Scrolling Frame Container
Live Previewrunning real Luau in your browser
Booting Luau VM…
Preview of Scrolling Frame Container β€” executed via in-browser Luau VM (wasmoon)

Scrolling Frame Container

TSX + LuauFree

A scrollable container with custom scrollbar styling, smooth inertia scrolling, and content clipping. Foundation for lists, shops, and chat windows.

Details

AuthorRobloxUI Team
FrameworkRoblox-TS + React-Luau
CategoryContainers
Dependencies@rbxts/react, @robloxui/theme
Theme Tokenscolors.border, colors.bg
Last UpdatedJuly 22, 2026
import React from "@rbxts/react";
import { useTheme } from "@robloxui/theme";

interface ScrollingFrameProps {
  children: React.ReactNode;
  size: UDim2;
  scrollDirection?: "X" | "Y" | "XY";
  canvasSize?: UDim2;
}

export function ScrollingFrame({ children, size, scrollDirection = "Y" }: ScrollingFrameProps) {
  const { colors } = useTheme();

  return (
    <scrollingframe
      Size={size}
      CanvasSize={new UDim2(0, 0, 0, 0)}
      ScrollBarThickness={6}
      ScrollBarImageColor3={colors.border}
      BackgroundColor3={colors.bg}
      BorderSizePixel={0}
      ScrollingDirection={scrollDirection}
      AutomaticCanvasSize={scrollDirection}
    >
      <uilistlayout Padding={new UDim(0, 4)} />
      {children}
    </scrollingframe>
  );
}