← Prev40/49Next →
KokonutUI

KokonutUI

Smooth Tab

Navigation tabs with a spring-animated sliding indicator and directional blur transitions between content panels. Click the tabs below to see the pill slide and the content cross-fade with motion blur.

motionlucide-reactspring physics

Demo

Overview

A tabbed interface with a spring-animated sliding indicator and directional content transitions.

Features

Spring-Animated Pill

The active indicator slides between tabs using a spring with stiffness 400 and damping 30 for a snappy, organic feel.

Directional Content Transitions

Content panels enter and exit with directional slide, blur, and scale. Moving right slides content left, and vice versa.

Custom Card Content

Each tab accepts optional cardContent for fully custom panel rendering, or falls back to the built-in waveform layout.

Keyboard Accessible

Full keyboard navigation with proper ARIA roles, tab indices, and focus-visible ring for screen reader compatibility.

Props

PropTypeDefault
itemsTabItem[]4 default tabs (Models, MCPs, Agents, Users)
defaultTabIdstringfirst item id
classNamestringundefined
activeColorstringbg-[#1F9CFE]
onChange(tabId: string) => voidundefined

TabItem Interface

id: string

title: string

description?: string

icon?: LucideIcon

content?: ReactNode

cardContent?: ReactNode

color: string