Skip to content

Animation ​

tsx
sheet.present({
  id: 'details',
  content: <Details />,
  animation: {type: 'timing', durationMs: 180},
});
FieldTypeDescription
type'spring' | 'timing'Default spring
dampingnumber > 0Spring damping
stiffnessnumber > 0Spring stiffness
massnumber > 0Spring mass
durationMsnumber > 0Timing duration. Default 250 ms on the web

Zero or negative values return invalid-config.

Platform support ​

iOSAndroidWeb
Open/close motionSystem sheet animationSystem dialog animation✅ durationMs
Spring parametersstoredstored—

Native presenters use the platform's own motion today, which also respects the system "Reduce motion" setting. Custom springs are on the roadmap.

Released under the MIT License.