Virtual Labs DS
FoundationsComponentsPatternsGuidelines
GitHub

Navigation

Navigation components designed for Virtual Labs interfaces with clear hierarchy and scientific context.

Stable
Top Navigation
Primary navigation for lab applications
Virtual Labs
DashboardExperimentsResultsLibrary
<nav className="flex items-center justify-between p-4">
  <div className="flex items-center space-x-6">
    <div className="flex items-center space-x-2">
      <FlaskConical className="h-6 w-6 text-blue-600" />
      <span className="font-bold text-lg">Virtual Labs</span>
    </div>
    <div className="hidden md:flex items-center space-x-4">
      <a href="#" className="text-sm font-medium">Dashboard</a>
      <a href="#" className="text-sm font-medium">Experiments</a>
    </div>
  </div>
</nav>
Sidebar Navigation
Secondary navigation for lab sections and tools
EXPERIMENTS
Chemistry LabBiology LabPhysics Lab
TOOLS
Data AnalysisLab ManualSettings
<nav className="space-y-2">
  <div className="px-3 py-2 text-sm font-medium text-muted-foreground">
    EXPERIMENTS
  </div>
  <a href="#" className="flex items-center px-3 py-2 text-sm font-medium bg-blue-50 text-blue-700 rounded-md">
    <Beaker className="mr-3 h-4 w-4" />
    Chemistry Lab
  </a>
  <a href="#" className="flex items-center px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted rounded-md">
    <Microscope className="mr-3 h-4 w-4" />
    Biology Lab
  </a>
</nav>
Breadcrumbs
Show current location in lab hierarchy
HomeChemistry LabAcid-Base TitrationExperiment Setup
<nav className="flex items-center space-x-2 text-sm">
  <a href="#" className="text-blue-600 hover:text-blue-800">Home</a>
  <ChevronRight className="h-4 w-4 text-muted-foreground" />
  <a href="#" className="text-blue-600 hover:text-blue-800">Chemistry Lab</a>
  <ChevronRight className="h-4 w-4 text-muted-foreground" />
  <span className="text-muted-foreground">Current Page</span>
</nav>
Tab Navigation
Switch between different views or sections

Content for overview tab would appear here.

<nav className="flex space-x-8 border-b">
  <button className="py-2 px-1 border-b-2 border-blue-500 text-blue-600 font-medium text-sm">
    Overview
  </button>
  <button className="py-2 px-1 border-b-2 border-transparent text-muted-foreground hover:text-foreground font-medium text-sm">
    Procedure
  </button>
</nav>
Dropdown Navigation
Hierarchical navigation with submenus
Chemistry
Acid-Base TitrationRedox ReactionsCrystallization
Physics
Pendulum MotionWave Interference
<div className="relative">
  <button className="flex items-center px-4 py-2 text-sm font-medium border rounded-md">
    Select Lab
    <ChevronDown className="ml-2 h-4 w-4" />
  </button>
  <div className="absolute top-full left-0 mt-1 w-56 bg-white border rounded-md shadow-lg">
    <div className="py-1">
      <a href="#" className="block px-3 py-2 text-sm hover:bg-muted">
        Acid-Base Titration
      </a>
    </div>
  </div>
</div>