Interface for the configuration options of the PullToAction component

PullToActionConfig

Hierarchy

  • PullToActionConfig

Properties

animationDuration?: number

Duration of the pull animation in seconds

Default

0.3
customIcon?: ReactNode

Custom icon element to use instead of the default refresh icon

dragContent?: boolean

Whether the content should be dragged along with the pull action

Default

false
enableFadeIn?: boolean

Whether to enable fade-in animation of the refresh icon

Default

true
enableRotation?: boolean

Whether to enable rotation animation of the refresh icon

Default

true
iconFinalPosition?: number

The final position of the refresh icon when fully pulled

Default

20
iconInitialPosition?: number

The initial position of the refresh icon in pixels from the top

Default

-50
iconSize?: number

Size of the refresh icon in pixels

Default

24
maxPullRatio?: number

The maximum pull distance as a ratio of screen height

Default

0.2
pullDownThreshold?: number

The threshold in pixels that the user needs to pull down to trigger a refresh

Default

100
showThreshold?: number

The minimum pull distance in pixels before showing the refresh icon

Default

20
spinDuration?: number

Duration of the refresh spinner animation in seconds

Default

1