Skip to content
Theme:

Ui3nScrollbarVertical ​

Vertical scrollbar component with customizable appearance and behavior.

Props

NameTypeDefaultDescription
thumbMinHeightstring | number | undefinedMIN_HEIGHT No description provided
thumbHeightstring | number | undefined"auto" No description provided
thumbRadiusstring | number | undefined — No description provided
thumbColorstring | undefined — No description provided
thumbHoverColorstring | undefined — No description provided
thumbActiveColorstring | undefined — No description provided
trackWidthnumber | undefined — No description provided
trackRadiusstring | number | undefined — No description provided
trackColorstring | undefined — No description provided
autoUpdateboolean | undefinedtrue No description provided

Events

Event NameArguments / Value TypeDescription
scrollvalue: Event —

Slots

Slot NameScope Props (v-slot)Description
#default —

Default slot

Public Methods & Exposes

Method NameSignature / TypeDescription
scrollTo()(options: ScrollToOptions) => void —
getContainer()() => HTMLDivElement —
updateMetrics()() => void —

CSS Variables

Set any of these where you need it — on :root, on a container, or on the element itself through [data-ui3n] — and the component follows. Leave them alone and it uses the defaults below.

NameDefault
--ui3n-scrollbar-thumb-active-colorvar(--color-bg-control-accent-focused)
--ui3n-scrollbar-thumb-colorvar(--color-bg-control-accent-default)
--ui3n-scrollbar-thumb-hover-colorvar(--color-bg-control-accent-hover)
--ui3n-scrollbar-thumb-radius4px
--ui3n-scrollbar-track-colortransparent
--ui3n-scrollbar-track-radius4px
--ui3n-scrollbar-track-width6px

Usage Examples ​

Simple vertical scrollbar ​

Simple vertical scrollbar

Basic vertical scrollbar with content

Custom styled scrollbar ​

Custom styled scrollbar

Scrollbar with custom colors and dimensions