v14.2.0

Playroom

Github

PagerView

View Source

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

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

Props

axis'horizontal' | 'vertical'

Which axis the track moves on. Defaults to horizontal.

Controls the active view by index.

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

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

spacingnumber

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

autoFocusboolean

Auto focus the first focusable element in the active view.

  • Props
PreviousGridViewNextStackView