Back to AIX Effects LibraryQA Verified · Synced
Interactive Components/<FluidNavIndicator />·Beginner

Fluid Navigation Indicator

Isolates layoutId projection per rendered instance while providing semantic ARIA tablist markup out of the box.

Next.js 16+React 19TypeScriptTailwind CSSFramer Motion
Select tabs across uneven label widths
active: overview · stiffness 400

Select tabs and tune spring stiffness/damping parameters.

Installation

npm install framer-motion
framer-motion^13.4.0

Powers shared-element spring FLIP projection across tabs.

Usage

import { FluidNavIndicator } from '@/components/effects/library/interactive/FluidNavIndicator'

<FluidNavIndicator
  items={[
    { id: 'overview', label: 'Tổng quan' },
    { id: 'code', label: 'Source Code' },
    { id: 'prompt', label: 'AI Prompt' },
  ]}
  defaultActiveId="overview"
  stiffness={400}
  damping={30}
/>

Props & API Reference

4 props
PropTypeDefaultDescriptionEffect
itemsFluidNavItem[](required)Array of `{ id, label }` tab definitions.Renders variable-width interactive tabs.
stiffnessnumber400Spring stiffness driving shared pill speed.Controls snappy response velocity.
dampingnumber30Spring damping coefficient.Tunes bounce overshoot.
pillColorstring'#536dfe'Active indicator capsule fill color.Styles floating background pill.

More in Interactive Components

View All 36 →
R=145px · k=0.14Approach & Click

Magnetic Button

Spring-damped cursor pull pill button featuring decoupled inner text parallax and radial XOR glow.

View Details
Move pointer or tap cells to illuminate hairline grid
01
Pointer Tracking
02
Masked Grid
03
Touch Ready
04
Zero Packages
Beam 280px · Grid 28px

Cursor Spotlight

Radial light container uncovering masked hairline coordinates cleanly under pointer.

View Details
Hover or swipe edges from all 4 directions
01
Top / Bottom Entry
Cross top or bottom edge
01
Top / Bottom Entry

Vector atan2 slides glass panel along crossed edge.

02
Left / Right Entry
Cross left or right border
02
Left / Right Entry

Aspect-normalized quad detection stays true on wide cards.

duration: 0.28s

Direction-Aware Hover

Detects pointer crossing edge via atan2 geometry and slides scrim along exact side.

View Details