SlideFromTop preset creates a screen that slides in from the top edge and can be dismissed by swiping up.
Function Signature
Parameters
Optional configuration to override preset defaults
Returns
Configuration object with gesture settings and animation interpolator
Implementation Details
Screen Style Interpolator
The preset uses vertical translation to slide the screen:progress = 0: Screen is off-screen at top (-height)progress = 1: Screen is visible at normal position (0)progress = 2: Screen exits to bottom (height)
Transition Spec
Usage Examples
Common Use Cases
- Notification banners - Quick, dismissible alerts from the top
- Dropdown menus - Contextual menus that slide down
- System alerts - Important messages that appear from top
- Top sheets - Alternative to bottom sheets for top-anchored content
Notes
The gesture direction is
vertical-inverted, meaning users swipe up to dismiss the screen (opposite of the entry direction).