ComponentsModern
Tabs
Code editor tabs with pill-style indicators, reordering, tab management, and file content preview.
Demo
Features
- Pill-style active tab with inverse highlight
- Dot indicators showing total tab count and position
- Scroll indicators for overflowing tab bar
- Tab reordering with Shift+arrow keys
- Create and close tabs dynamically
- Number key quick-jump (1-9)
- Pinned tabs (non-closable)
- Code preview with line numbers and separator
Keybindings
h/lorleft/right- Switch tabs1-9- Jump to tab by numbern- Create new tabw- Close current tabH/LorShift+arrows- Reorder tabs