PagerView

View Source

Allows paging between views. Use with the useRovingIndex hook to control the activeViewIndex.

1
2
3
4
Arrangement
A
Ab
B
C
C#
D
Db
E
Eb
F
F#
G

Props

Accepts StackView props.

Controls the active view by index.

autoFocusboolean

Auto focus the first focusable element in the active view.

axis'horizontal' | 'vertical'

Which axis the track moves on. Defaults to horizontal.

spacingnumber

The amount of space between views. Uses 8-point grid multiplier.

The number of views to move upon using prev and next methods. Defaults to 1.

The number of views visible in the frame at one time. Defaults to 1.