Accepted values for scroll behavior aspects.

Essentially, all the well-known HTML properties are available, but with predefined values.

See below for an example using some of the properties:

Exemplo básico:

<View
scrollBehavior="smooth"
>
<Text color="neutral-900">My awesome text</Text>
</View>

Hierarchy

Properties

scrollBehavior?: "auto" | "smooth"

Sets the behavior for a scrolling box when scrolling is triggered by the navigation.

scrollMargin?: string | number

Sets the scroll margin.

scrollMarginBlock?: string | number

Sets the scroll margin on the block.

scrollMarginBlockEnd?: string | number

Sets the scroll margin at the end of the block.

scrollMarginBlockStart?: string | number

Sets the scroll margin at the start of the block.

scrollMarginBottom?: string | number

Sets the scroll margin at the bottom.

scrollMarginInline?: string | number

Sets the scroll margin on the inline.

scrollMarginInlineEnd?: string | number

Sets the scroll margin at the end of the inline.

scrollMarginInlineStart?: string | number

Sets the scroll margin at the start of the inline.

scrollMarginLeft?: string | number

Sets the scroll margin on the left.

scrollMarginRight?: string | number

Sets the scroll margin on the right.

scrollMarginTop?: string | number

Sets the scroll margin at the top.

scrollPadding?: string | number

Sets the scroll padding.

scrollPaddingBlock?: string | number

Sets the scroll padding on the block.

scrollPaddingBlockEnd?: string | number

Sets the scroll padding at the end of the block.

scrollPaddingBlockStart?: string | number

Sets the scroll padding at the start of the block.

scrollPaddingBottom?: string | number

Sets the scroll padding at the bottom.

scrollPaddingInline?: string | number

Sets the scroll padding on the inline.

scrollPaddingInlineEnd?: string | number

Sets the scroll padding at the end of the inline.

scrollPaddingInlineStart?: string | number

Sets the scroll padding at the start of the inline.

scrollPaddingLeft?: string | number

Sets the scroll padding on the left.

scrollPaddingRight?: string | number

Sets the scroll padding on the right.

scrollPaddingTop?: string | number

Sets the scroll padding at the top.

scrollSnapAlign?: "center" | "start" | "end"

Sets the alignment of scroll snap.

scrollSnapStop?: "normal" | "always"

Sets the scroll snap to stop normally or always.

scrollSnapType?: "none" | "block" | "inline" | "both" | "x mandatory" | "x proximity" | "y mandatory" | "y proximity" | "both mandatory" | "both proximity"

Sets the type of scroll snap.