MCPcopy Create free account
hub / github.com/Effect-TS/effect / scrollbarAttr

Function scrollbarAttr

packages/effect/src/ui/kit/ScrollArea.ts:169–172  ·  view source on GitHub ↗
(orientation: ScrollAreaOrientation)

Source from the content-addressed store, hash-verified

167 orientation === "vertical" ? "horizontal" : "vertical"
168
169const scrollbarAttr = (orientation: ScrollAreaOrientation): string =>
170 orientation === "vertical"
171 ? "data-scroll-area-scrollbar-y"
172 : "data-scroll-area-scrollbar-x"
173
174const thumbAttr = (orientation: ScrollAreaOrientation): string =>
175 orientation === "vertical"

Callers 2

syncFunction · 0.85
ScrollArea.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected