Smooth Tabs
Segmented control with sliding indicator and directional content transitions
Introduction
The Tabs example shows a segmented control UI - a row of tab buttons with a sliding pill indicator that animates between them, and a content panel below that transitions directionally when the active tab changes.
It uses three APIs from Motion:
motionto animate the sliding indicator and content panelAnimatePresenceto handle entering and exiting content as tabs changevariantsto define directional enter and exit states for the content
