Skip to content

Scrollbar

Custom scrollbar for overflow regions.

Installation

bun add @xerobi/ui
import { Scrollbar } from "@xerobi/ui/scrollbar"

This component is client-side. In Astro, hydrate it with a client directive.

API reference

Scrollbar

PropTypeDescription
childrenstring | number | bigint | boolean | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode>
fillContentbooleanStretch the scroll content to the full height of the container.

Search documentation

Search pages, components and blocks.