This entry point is published in @wsagency/wseffect-themes@0.1.0-rc.1. Import it from the package subpath shown below; the signatures and documentation are read from the installed package declarations.
import * as Wseffect from '@wsagency/wseffect-themes/components/scroll-area'
Props exported by @wsagency/wseffect-themes/components/scroll-area · Props · source
Name
Type
Required
Choices
Description
size
"1" | "2" | "3" | Responsive<"1" | "2" | "3">
No
—
—
radius
"none" | "small" | "medium" | "large" | "full"
No
"none", "small", "medium", "large", "full"
—
scrollbars
"vertical" | "horizontal" | "both"
No
"vertical", "horizontal", "both"
—
m
string | Responsive<string>
No
—
—
mx
string | Responsive<string>
No
—
—
my
string | Responsive<string>
No
—
—
mt
string | Responsive<string>
No
—
—
mr
string | Responsive<string>
No
—
—
mb
string | Responsive<string>
No
—
—
ml
string | Responsive<string>
No
—
—
Rendered component example
ScrollArea
Scrollable content
Example usage
import * as Themes from '@wsagency/wseffect-themes'
import * as SliderRange from '@wsagency/wseffect-themes/components/slider/range'
import * as Option from 'effect/Option'
import { defineView } from '@wsagency/wseffect-foldkit/submodel'
import { inertHtml, type HtmlBuilder } from '@wsagency/wseffect-foldkit/html'
const example = (h: HtmlBuilder<unknown>) => Themes.ScrollArea.view({ scrollbars: 'vertical' }, [h.p([], ['Scrollable content'])], h)