Enter
Toggles

PipToggle

The inner pane shrinks into the corner of the frame, morphing rather than swapping between two icons.

Usage

<PipToggle
  size="md"
  spring="smooth"
/>

How the motion works

Both states describe the same nine geometry numbers for the frame and the inner pane. Sharing one descriptor lets a single spring drive the whole morph, so the pane detaches and travels to the corner continuously instead of cutting between icons.

useMorphusePress

Props

PropTypeDefaultDescription
active / defaultActivebooleanControlled or initial state.
onChange(active: boolean) => voidFires when toggled.
labelstring"Picture in picture"Accessible name.