XiodUI
HomeDocs
OverviewComponentsStyling & CustomizationChangelog

Components

  • Accordion
  • Agent Steps
  • Alert
  • Alert Dialog
  • Aspect Ratio
  • Autocomplete
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Button Group
  • Button Split
  • Calendar
  • Card
  • Carousel
  • Checkbox
  • Circular Progress
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy To Clipboard
  • Corner Badge
  • Dashboard Grid
  • Date Picker
  • Dialog
  • Dot Matrix
  • Draggable
    Updated
  • Drawer
  • Empty
  • Field
  • Fieldset
  • File Upload
    Updated
  • Form
  • Frame
  • Gauge
  • Grid
  • Group
  • Input
  • Input Group
  • Input OTP
  • Input Payment
  • Input Phone
    Updated
  • Input Sensitive
  • Kbd
  • Kinetic Click
  • Label
  • List Box
    Updated
  • Loader
  • Marker
  • Menu
  • Menubar
  • Message
  • Meter
  • Morphic Toast
  • Navigation Menu
  • Number Field
  • Option Picker
  • Orb
  • Pagination
  • Popover
  • Preview Card
    Updated
  • Progress
  • Radio
  • Resizable
  • Ruler Picker
  • Scroll Area
  • Scroll Bar
  • Select
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Sortable
  • Switch
  • Table
  • Tabs
  • Text
  • Textarea
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Toolbar
  • Tooltip
  • Waveform
  • Wheel Picker

Loading...

Preview Skeleton

Installation Skeleton

Usage Skeleton

API Reference Skeleton

Sponsors

Support the development of XiodUI and help us build the best component library on Earth.

+++
Sponsor on GitHub

Scroll Area

Previous: Ruler PickerNext: Scroll Bar

A scrollable region with styled scrollbars.

Preview

Loading Preview...

Installation

bun add xiod-ui

Usage

Imports

1import { ScrollArea, ScrollBar } from "xiod-ui/scroll-area";

API Reference

Detailed documentation of properties and options.

ScrollArea

Accepts className, style and render, plus every native attribute of the element it renders.

PropTypeDefaultDescription
overflowEdgeThreshold
number | Partial<{ xStart: number; xEnd: number; yStart: number; yEnd: number; }>
0

The threshold in pixels that must be passed before the overflow edge attributes are applied. Accepts a single number for all edges or an object to configure them individually.

scrollbarGutter
boolean
false

Whether to reserve space for the scrollbars so they don't overlap the content.

scrollbarSize

ScrollBar

Accepts className, style and render, plus every native attribute of the element it renders.

PropTypeDefaultDescription
keepMounted
boolean
false

Whether to keep the HTML element in the DOM when the viewport isn't scrollable.

orientation
"horizontal"
Ruler PickerScroll Bar
"lg"|"md"|"sm"
sm

The thickness of the scrollbars.

scrollbarVariant
"default"|"card"
default

The scrollbar style. card gives the track a background and border.

scrollbarVisibility
"always"|"auto"|"hover"
auto

When the scrollbars show: auto while scrolling or hovered, hover only while hovered, always all the time.

scrollFade
boolean
false

Whether the content fades out at an edge that has more to scroll to.

|
"vertical"
'vertical'

Whether the scrollbar controls vertical or horizontal scroll.

size
"lg"|"md"|"sm"
–

The size of the component.

variant
"default"|"card"
–

The visual style of the component.

visibility
"always"|"auto"|"hover"
–

When the scrollbar shows: auto while scrolling or hovered, hover only while hovered, always all the time.