ScrollViewProps
Defined in: ui/src/types.ts:447
Props for ScrollViewNode / <ScrollView>.
The viewport box is sized via the inherited LayoutProps (width /
height / flexGrow …). Content overflowing the scroll axis is clipped
and pannable. gap / padding apply to the inner content stack.
Extends
Section titled “Extends”Properties
Section titled “Properties”alignSelf?
Section titled “alignSelf?”
optionalalignSelf?:"stretch"|"auto"|"flex-start"|"center"|"flex-end"|"baseline"
Defined in: ui/src/types.ts:126
Inherited from
Section titled “Inherited from”background?
Section titled “background?”
optionalbackground?:BackgroundOptions
Defined in: ui/src/types.ts:462
Background drawn behind the clipped content.
bottom?
Section titled “bottom?”
optionalbottom?:PositionValue
Defined in: ui/src/types.ts:152
Offset from the containing block’s bottom edge — px or "<n>%" (only applies to position: "absolute").
Inherited from
Section titled “Inherited from”consumeInput?
Section titled “consumeInput?”
optionalconsumeInput?:boolean
Defined in: ui/src/types.ts:198
Inherited from
Section titled “Inherited from”ConsumeInputProps.consumeInput
direction?
Section titled “direction?”
optionaldirection?:"horizontal"|"vertical"
Defined in: ui/src/types.ts:449
Scroll/stack axis. Default "vertical".
flexBasis?
Section titled “flexBasis?”
optionalflexBasis?:LayoutValue
Defined in: ui/src/types.ts:125
Inherited from
Section titled “Inherited from”flexGrow?
Section titled “flexGrow?”
optionalflexGrow?:number
Defined in: ui/src/types.ts:123
Inherited from
Section titled “Inherited from”flexShrink?
Section titled “flexShrink?”
optionalflexShrink?:number
Defined in: ui/src/types.ts:124
Inherited from
Section titled “Inherited from”
optionalgap?:number
Defined in: ui/src/types.ts:451
Gap between child cards (forwarded to the content stack).
height?
Section titled “height?”
optionalheight?:LayoutValue
Defined in: ui/src/types.ts:115
Inherited from
Section titled “Inherited from”
optionalleft?:PositionValue
Defined in: ui/src/types.ts:146
Offset from the containing block’s left edge — px or "<n>%" (only applies to position: "absolute").
Inherited from
Section titled “Inherited from”margin?
Section titled “margin?”
optionalmargin?:number| {bottom?:number;left?:number;right?:number;top?:number; }
Defined in: ui/src/types.ts:120
Inherited from
Section titled “Inherited from”maxHeight?
Section titled “maxHeight?”
optionalmaxHeight?:LayoutValue
Defined in: ui/src/types.ts:119
Inherited from
Section titled “Inherited from”maxWidth?
Section titled “maxWidth?”
optionalmaxWidth?:LayoutValue
Defined in: ui/src/types.ts:117
Inherited from
Section titled “Inherited from”minHeight?
Section titled “minHeight?”
optionalminHeight?:LayoutValue
Defined in: ui/src/types.ts:118
Inherited from
Section titled “Inherited from”minWidth?
Section titled “minWidth?”
optionalminWidth?:LayoutValue
Defined in: ui/src/types.ts:116
Inherited from
Section titled “Inherited from”onScroll?
Section titled “onScroll?”
optionalonScroll?: (offset) =>void
Defined in: ui/src/types.ts:464
Called when the scroll offset changes.
Parameters
Section titled “Parameters”offset
Section titled “offset”number
Returns
Section titled “Returns”void
padding?
Section titled “padding?”
optionalpadding?:Padding
Defined in: ui/src/types.ts:453
Padding inside the content stack.
position?
Section titled “position?”
optionalposition?:"relative"|"absolute"
Defined in: ui/src/types.ts:144
Positioning mode for this element relative to its parent. Defaults to
"relative" — the element flows in the parent’s flex layout. Set to
"absolute" to lift the element out of the flow and pin it via
left / top / right / bottom against the parent’s content box.
A position: "relative" ancestor acts as the containing block for any
absolute-positioned descendants — useful for HUD overlays, modal
backdrops, and badge markers. See <ZStack> in @yagejs/ui-react for
an opinionated overlay primitive.
Inherited from
Section titled “Inherited from”right?
Section titled “right?”
optionalright?:PositionValue
Defined in: ui/src/types.ts:150
Offset from the containing block’s right edge — px or "<n>%" (only applies to position: "absolute").
Inherited from
Section titled “Inherited from”scrollbar?
Section titled “scrollbar?”
optionalscrollbar?:boolean|ScrollbarOptions
Defined in: ui/src/types.ts:460
Scrollbar thumb. true (default) / omitted → default style; false →
hidden (and no gutter reserved); an object → custom size / style. When
shown, a gutter equal to the thumb’s footprint is reserved on the
scroll-cross edge so content never renders under the thumb.
optionaltop?:PositionValue
Defined in: ui/src/types.ts:148
Offset from the containing block’s top edge — px or "<n>%" (only applies to position: "absolute").
Inherited from
Section titled “Inherited from”visible?
Section titled “visible?”
optionalvisible?:boolean
Defined in: ui/src/types.ts:153
Inherited from
Section titled “Inherited from”width?
Section titled “width?”
optionalwidth?:LayoutValue
Defined in: ui/src/types.ts:114