Scroll Area

Ein Scroll-Container mit schmalen Bildlaufleisten in Token-Farben und dem nativen Scrollen des Browsers — vertikal, horizontal oder beides, per Tastatur erreichbar, solange der Inhalt überläuft, mit optional ausgeblendeten Rändern.

Verfügbar für
  • Angular: verfügbar
  • Vue: verfügbar
  • React: verfügbar
  • React Native: noch nicht verfügbar

Verwendung

Tags

v1.2.0-beta.30
v1.2.0-beta.29
v1.2.0-beta.28
v1.2.0-beta.27
v1.2.0-beta.26
v1.2.0-beta.25
v1.2.0-beta.24
v1.2.0-beta.23
v1.2.0-beta.22
v1.2.0-beta.21
v1.2.0-beta.20
v1.2.0-beta.19
v1.2.0-beta.18
v1.2.0-beta.17
v1.2.0-beta.16
v1.2.0-beta.15
v1.2.0-beta.14
v1.2.0-beta.13
v1.2.0-beta.12
v1.2.0-beta.11
v1.2.0-beta.10
v1.2.0-beta.9
v1.2.0-beta.8
v1.2.0-beta.7
v1.2.0-beta.6
v1.2.0-beta.5
v1.2.0-beta.4
v1.2.0-beta.3
v1.2.0-beta.2
v1.2.0-beta.1
--accent
--accent-soft
--surface-hover
--success
--warning
--danger

Import

ts
import {
  SoneScrollAreaDirective,
} from "@surface-one/angular/scroll-area";

API-Referenz

SoneScrollAreaDirectiveDirektive

`[soneScrollArea]` — a scroll container with thin, token-coloured scrollbars (shadcn/ui ScrollArea, spartan/ui Scroll Area) that keeps the browser's own scrolling: no scrollbar is emulated. Give it a height (or a width for `horizontal`); `orientation` picks the axes that scroll (`vertical`, `horizontal` or `both`). While its content overflows it is a keyboard stop (`tabindex="0"`, unless you set one) so the arrow keys scroll it, and a named one (`aria-label`) is a `region`. `fade` softens the edges where content is hidden (it masks the whole box, so draw a border on a wrapper).

Selektor
[soneScrollArea]
Export als
soneScrollArea
Inputs
NameTyp Standard
orientationScrollAreaOrientation"vertical"
fade

Fade the content out at the edges where more of it is hidden.

booleanfalse