Motion+

Tab select

An example of a tab select component using Motion's animateLayout for shared layout animations. The selected indicator smoothly moves between tabs.

JavaScript
>Live exampleOpen

Related examples

Latest in JavaScript

Motion+

Unlock all 370+ examples

  • Source code for every Plus example.
  • Provide examples direct to your agent via Motion's MCP.
  • Lifetime access to new examples and APIs.