BrowseScroll Area

Surfaces

Glass Scroll Area

A scrolling region with a slim glass bar that appears only when you need it.

Preview

  • Version 2.6Search finds files by their contents.
  • Version 2.5Shared folders sync in the background.
  • Version 2.4Pin a project to keep it at the top.
  • Version 2.3Undo now reaches back a whole day.
  • Version 2.2Export a board as a single image.
  • Version 2.1Comments show who has read them.

Installation

Install the package once, then import the parts you use into a standalone component.

Install

npm install ngx-vitreo @angular/cdk @floating-ui/dom
Import

import { GlassScrollArea } from 'ngx-vitreo';

@Component({
  imports: [GlassScrollArea],
  // ...
})

Usage

Usage

<glass-panel class="cpreview-scroll" variant="card">
  <glass-scroll-area
    class="cpreview-scroll-area"
    type="auto"
    viewportLabel="Release notes"
    viewportRole="region"
    [viewportTabindex]="0"
  >
    <ul class="cpreview-scroll-list" role="list">
      @for (note of notes; track note.title) {
        <li>
          <strong>{{ note.title }}</strong>
          <span>{{ note.detail }}</span>
        </li>
      }
    </ul>
  </glass-scroll-area>
</glass-panel>

API reference

GlassScrollArea

glass-scroll-area

InputTypeDefaultDescription
scrollbars'vertical' | 'horizontal' | 'both''vertical'Which scrollbars to draw.
type'hover' | 'scroll' | 'auto' | 'always''hover'When a scrollbar shows: on hover and while scrolling, only while scrolling, whenever the content overflows, or always.
scrollHideDelaynumber600Milliseconds a scrollbar stays after the pointer leaves or scrolling stops.
viewportLabel / viewportRole / viewportTabindexstring / string / numberNonearia-label, role and tabindex of the element that scrolls. Pass region, a label and 0 when the content holds no links or controls.
viewportId / viewportClassstringNoneid and classes of the element that scrolls.