+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "getScrollbarWidth"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
+++
## getScrollbarWidth() function
### getScrollbarWidth() function
Signature
```typescript
export declare function getScrollbarWidth(): number;
```
Import
```typescript
import { getScrollbarWidth } from '@grafana/ui';
```
Returns:
`number`