Tabs

Organize related content into layered sections with horizontal, controlled, and vertical tab layouts.

Installation

$npx maddex add Tabs

Overview Tabs

Start with the standard uncontrolled pattern. This mirrors the common settings layout where each trigger reveals a related panel.

Preview

        
            
        
    

Controlled Tabs

Promote the selected tab into route state when outside controls or other UI need to drive the active panel.

Preview

        
            
        
    

Vertical Manual Activation

Use a vertical list for dense navigation. With manual activation enabled, arrow keys move focus first, then Enter or Space commits the focused tab.

Preview