# ScrollBar
> **NOTE:**
>This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.
The **** is used together with the scrollable components, such as ****, ****, and ****.
## Required Permissions
None
## Child Components
This component can contain a single child component.
## APIs
ScrollBar\(value: ScrollBarOption\)
- ScrollBarOption parameters
> **NOTE:**
>The **<\ScrollBar>** component defines the behavior style of the scrollable area, and its subnodes define the behavior style of the scrollbar.
>This component is bound to a scrollable component through **scroller**, and can be used to scroll the scrollable component only when their directions are the same. The **<\ScrollBar>** component can be bound to only one scrollable component, and vice versa.
- ScrollBarDirection enums
Name
Description
Vertical
Vertical scrollbar.
Horizontal
Horizontal scrollbar.
- BarState enums
Name
Description
On
Always displayed.
Off
Hidden.
Auto
Displayed on demand (displayed when the user touches the screen and hidden after inactivity of 2s).