Skip to Content
DocumentationScroll Area

Scroll Area

Styled scrollable container using Radix Scroll Area.

Examples

Vertical

Item #1
Item #2
Item #3
Item #4
Item #5
Item #6
Item #7
Item #8
Item #9
Item #10
Item #11
Item #12
Item #13
Item #14
Item #15
Item #16
Item #17
Item #18
Item #19
Item #20

Horizontal

Wide content to demonstrate horizontal scrolling (drag sideways)

Vertical and horizontal

Block 1
Block 2
Block 3
Block 4
Block 5
Block 6
Block 7
Block 8
Block 9
Block 10
Block 11
Block 12
Block 13
Block 14
Block 15
Block 16
Block 17
Block 18
Block 19
Block 20
Block 21
Block 22
Block 23
Block 24

API

ScrollArea

PropertyTypeDefaultDescription
classNamestring-CSS class name for container styling.
childrenReact.ReactNode-Content rendered inside the viewport.
…propsReact.ComponentProps<typeof ScrollAreaPrimitive.Root>-All Radix ScrollArea Root props are supported.

ScrollBar

PropertyTypeDefaultDescription
orientation”vertical” | “horizontal""vertical”Scrollbar orientation.
classNamestring-CSS class name for bar styling.
…propsReact.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>-All Radix Scrollbar props are supported.
Last updated on