Skip to content

GhostScrollArea reference ​

Package: @ghostvue/themes. Status: experimental (stability policy).

Themed native scroll container. Adds data-themed, scrollbar containment, and scrollbar clearance (inline-end padding for vertical, block-end for horizontal, both for both) so overlay scrollbars never cover content; behavior matches @ghostvue/vue GhostScrollArea, including stickToBottom, v-model:stuck, and the exposed element and scrollToBottom().

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
as'div'"div"NoForwarded to the unstyled scroll root.
labelstring—NoForwarded accessible name when the root is focusable.
orientationGhostScrollAreaOrientation"vertical"NoForwarded scroll axes.
typeGhostScrollAreaOverflowType"auto"NoForwarded overflow mode.
stickToBottombooleanfalseNoForwarded opt-in to follow new content at the bottom. Applies to vertical and both.
stuckboolean—NoForwarded controlled following state (v-model:stuck). Omit for uncontrolled mode, which starts true.

Emits ​

None declared.

Models ​

PropEventTypeDescription
stuckupdate:stuckbooleanv-model:stuck re-emitted from the unstyled GhostScrollArea.

Slots ​

NameDescription
defaultScrollable content.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
elementHTMLElement | undefinedScroll root element. Delegates to the unstyled GhostScrollArea.
scrollToBottom(options?: GhostScrollAreaScrollToBottomOptions) => voidScrolls to the bottom and, with stickToBottom, resumes following. Delegates to the unstyled GhostScrollArea.

Parts and data attributes ​

None declared.

CSS variables ​

NameDescription
--ghost-border-strongNative scrollbar thumb color where scrollbar-color is supported.
--ghost-space-inset-scrollbarClearance padding on the scrollbar edge of each enabled axis.

Accessibility ​

Role: native scrolling. APG pattern: https://www.w3.org/WAI/ARIA/apg/.

Required ARIA attributes: none.

Keyboard ​

KeyActionAutomated browser test
ArrowUpNative scroll up on the focused root. With stickToBottom, holds following and releases on the resulting scroll.Not reviewed
PageUpNative page up on the focused root. With stickToBottom, holds following and releases on the resulting scroll.Not reviewed
HomeNative scroll to top on the focused root. With stickToBottom, holds following and releases on the resulting scroll.Not reviewed
Shift+SpaceNative page up on the focused root. With stickToBottom, holds following and releases on the resulting scroll.Not reviewed
EndNative scroll to bottom on the focused root. With stickToBottom, re-engages following.Not reviewed

Verification ​

Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

scroll-area/activity-feed ​

Example source

Workspace activity feed

Named scroll region inside a card displaying timestamped team events with responsive metadata.

Workspace activity6 events
  • AL
    Ada LovelacePublished @ghostvue/themes v2.14.0
    Release10:42
  • GH
    Grace HopperUpdated contrast tokens for dark surface elevation
    Tokens10:18
  • AT
    Alan TuringVerified Linux visual baselines across 17 showcases
    QA09:54
  • KJ
    Katherine JohnsonRotated staging deploy key for us-west-2
    Security09:12
  • MH
    Margaret HamiltonEnabled automatic rollback guard on canary cluster
    Infra08:40
  • BL
    Barbara LiskovArchived legacy icon sprite pipeline
    Cleanup08:05

scroll-area/horizontal ​

Example source

Horizontal strip

Named horizontal region inside a card that scrolls a row of deployment environment tiles.

Deployment environments6 environments
  • Productionus-east-1v2.14.0Healthy
  • Canaryus-east-1v2.15.0-rc.2Rolling out
  • Stagingus-west-2v2.15.0-rc.2Healthy
  • EU mirroreu-central-1v2.13.4Degraded
  • QAus-west-2v2.15.0-rc.3Deploying
  • Preview 482us-west-2pr-482Idle

scroll-area/themed ​

Example source

Themed

Inbox region sized by its layout, with native scrollbar containment on @ghostvue/themes.

  • BillingInvoice INV-2048 is ready
  • Ada LovelaceReview requested on the tokens PR
  • StatusScheduled maintenance on Saturday
  • Grace HopperRelease notes draft for v2.15
  • SecurityNew sign-in from Berlin
  • Alan TuringVisual baselines updated
  • SupportTicket 3141 was resolved
  • Margaret HamiltonCanary rollback guard enabled

scroll-area/stick-to-bottom ​

Example source

Stick to bottom

Build output that follows new lines, pauses when the reader scrolls up, and returns with a Jump to latest button bound to v-model:stuck.

Following output
  1. $ pnpm build
  2. > ghostvue-workspace@0.0.0 build
  3. > pnpm build:packages && pnpm --filter @ghostvue/playground build
  4. Scope: 9 of 10 workspace projects
  5. packages/vue build$ vite build
  6. packages/vue build: transforming...
  7. packages/vue build: 412 modules transformed.
  8. packages/vue build: dist/index.js 182.40 kB
  9. packages/themes build$ node scripts/compile-tokens.mjs
  10. packages/themes build: wrote 3 palettes