Skip to main content

Type Alias: AdwViewStackProps

AdwViewStackProps = WidgetProps & object

Defined in: generated/jsx.ts:9134

Props for the AdwViewStack widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:9173
enableTransitions?booleanWhether the stack uses a crossfade transition between pages. Use AdwViewStack.transition-duration to control the duration, and AdwViewStack.transition-running to know when the transition is running.generated/jsx.ts:9142
hhomogeneous?booleanWhether the stack is horizontally homogeneous. If the stack is horizontally homogeneous, it allocates the same width for all children. If it's FALSE, the stack may change width when a different child becomes visible.generated/jsx.ts:9152
onPageChanged?(page, self) => void | nullCalled when the visible page changes, either programmatically or via a ViewSwitcher/StackSwitcher.generated/jsx.ts:9172
page?string | nullID of the visible page in the stack.generated/jsx.ts:9170
ref?Ref<Adw.ViewStack>-generated/jsx.ts:9174
transitionDuration?numberThe transition animation duration, in milliseconds. Only used when AdwViewStack.enable-transitions is set to TRUE.generated/jsx.ts:9158
vhomogeneous?booleanWhether the stack is vertically homogeneous. If the stack is vertically homogeneous, it allocates the same height for all children. If it's FALSE, the stack may change height when a different child becomes visible.generated/jsx.ts:9168