Skip to Content
React Flow 13 is here! Read the announcement →
ReferenceTypes

FitBoundsOptions

Source on GitHub 

The FitBoundsOptions type is used to configure the fitBounds function you get from useReactFlow. Next to the shared viewport helper options duration, ease and interpolate, you can set a padding that is applied around the bounds.

Fields

NameTypeDefault
durationnumber
ease(t: number) => number
interpolate"smooth" | "linear"
paddingPadding