// Generated by scripts/generate-showcase.mjs. Do not edit directly. page CustomScrollbarDetail { layout = "showcase" state playground_size = ctx.url.searchParams.get("pg_size") ?? "default" state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary" state playground_columns = Number(ctx.url.searchParams.get("pg_columns") ?? "2") state playground_gap = ctx.url.searchParams.get("pg_gap") ?? "md" state playground_maxWidth = ctx.url.searchParams.get("pg_maxWidth") ?? "xl" state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1" seo { title = "Custom Scrollbar" description = "Theme-aware, responsive custom scrollbar component." } view {
Layout component

Custom Scrollbar

Theme-aware, responsive custom scrollbar component.

6 props1 slots1 outputsTheme readyResponsive
Interactive playground

Configure Custom Scrollbar

Change any prop and inspect the server-rendered component immediately.

Live preview
Component code
<CustomScrollbar />
Event outputInteract with the preview to inspect the typed payload.
Component props6 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Production default

Balanced spacing, hierarchy, and content for the most common product workflow.

01
Live preview
Component usage.wrn
<CustomScrollbar />
Dense UI

Compact application

A tighter variation for dashboards, side panels, tables, and operational interfaces.

02
Live preview
Component usage.wrn
<CustomScrollbar
  size="sm"
/>
Extended

Rich configuration

A more expressive variation using additional data, stronger emphasis, and optional states.

03
Live preview
Component usage.wrn
<CustomScrollbar
  size="lg"
/>
Component outputs

Receive every typed component output

Use declarative output handlers in .wrn files or register a direct output handler from JavaScript. The canonical API exposes payload and does not require event.detail.

@scrollFires when the component emits the scroll event.
Declarative handlers.wrn
<CustomScrollbar
  @scroll='console.log(payload)'
/>
Direct output handlers.js
import { registerOutputHandler } from "@wrnexus/csr/outputs"

const component = document.querySelector("[data-ui-component=\"CustomScrollbar\"], [data-component=\"CustomScrollbar\"]")

if (component) registerOutputHandler(component, "scroll", (payload) => {
  console.log("scroll", payload)
})
Component API

Props and configuration

All content and behavior shown above is supplied through these props and slots.

PropTypeDefaultRequired
sizestring"default"No
colorstring"primary"No
columnsnumber2No
gapstring"md"No
maxWidthstring"xl"No
classstring""No
} }