Elements

Components

Swap

Swap, dressed in the paper-and-ink system: two impressions occupying one seal, the arriving one growing into place on the spring while the departing one shrinks away. The parts — Root, Indicator (type="on" | "off"), RootProvider.

#Basic usage

swap/basic Vue React

#Props

#Indicator

PropTypeDefaultDescription
type'on' | 'off'—

#Root

PropTypeDefaultDescription
lazyMountbooleanWhether to enable lazy mounting.
swapbooleanWhether the swap is in the "on" state.
unmountOnExitbooleanWhether to unmount on exit.