Horizontal
Keeps an overflowing row of chips on one line.
import { Box } from '@usefragments/ui';
import { Chip } from '@usefragments/ui';
import { ScrollArea } from '@usefragments/ui';
import { Stack } from '@usefragments/ui';
<Box>Scrolls overflowing content with a slim scrollbar and optional edge fades.
import { Box } from '@usefragments/ui';
import { ScrollArea } from '@usefragments/ui';
import { Stack } from '@usefragments/ui';
import { Text } from '@usefragments/ui';
<Box>pnpm add @usefragments/uiImport styles once from @usefragments/ui/styles. See the installation guide for framework and theme setup.
Keeps an overflowing row of chips on one line.
import { Box } from '@usefragments/ui';
import { Chip } from '@usefragments/ui';
import { ScrollArea } from '@usefragments/ui';
import { Stack } from '@usefragments/ui';
<Box>Edge fades signal there is more content each way.
import { Box } from '@usefragments/ui';
import { Chip } from '@usefragments/ui';
import { ScrollArea } from '@usefragments/ui';
import { Stack } from '@usefragments/ui';
<Box>The thumb stays visible for content that is always scrolled.
import { Box } from '@usefragments/ui';
import { ScrollArea } from '@usefragments/ui';
import { Stack } from '@usefragments/ui';
import { Text } from '@usefragments/ui';
<Box>Prop | Type | Default | Description |
|---|---|---|---|
aria-label | string | undefined | Not set | Names the viewport as a region, read when it takes the keyboard |
aria-labelledby | string | undefined | Not set | Names the scrolling region by another element's id. |
childrenRequired | React.ReactNode | Not set | Scrollable content |
className | string | undefined | Not set | Additional class name |
orientation | ScrollOrientation | undefinedbothhorizontalvertical | vertical | Scroll direction |
scrollbarVisibility | "auto" | "always" | undefinedautoalways | auto | When the thin scrollbar shows: auto while scrolling, on hover and while focus is inside; always all the time |
showFades | boolean | undefined | false | Show gradient fade indicators at scroll edges |
dir | string | undefined | Not set | — |