# Sandbox.UI.ScrollBar

A scrollbar for one axis of a scrolling panel. Created by the panel while that axis overflows and its
`scrollbar-width` is non-zero. Configured with `scrollbar-width`, `scrollbar-color` and
`scrollbar-gutter` on the scrolling panel, like the web.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Panel](/api/Sandbox.UI.Panel)
- Modifiers: sealed

## Fields

- [`AutoThickness`](/api/Sandbox.UI.ScrollBar/AutoThickness): Thickness of `scrollbar-width: auto`, in style pixels.
- [`ThinThickness`](/api/Sandbox.UI.ScrollBar/ThinThickness): Thickness of `scrollbar-width: thin`, in style pixels.

## Properties

- [`IsVertical`](/api/Sandbox.UI.ScrollBar/IsVertical)
- [`WantsDrag`](/api/Sandbox.UI.ScrollBar/WantsDrag)

## Methods

- [`OnLayout`](/api/Sandbox.UI.ScrollBar/OnLayout)
- [`Tick`](/api/Sandbox.UI.ScrollBar/Tick)
