Join our Discord community
Navbar

AI Model Selector Navigation Bar

AI-focused navigation bar with model selector dropdown, temporary chat functionality, and user management. Features comprehensive model selection with descriptions and quick access to chat features for AI applications.

Powered by

Loading component...

Installation

npx shadcn@latest add https://www.shadcn.io/registry/navbar-13.json
npx shadcn@latest add https://www.shadcn.io/registry/navbar-13.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/navbar-13.json
bunx shadcn@latest add https://www.shadcn.io/registry/navbar-13.json

Features

  • AI model selector with detailed descriptions for each model (Orion-Alpha, Orion-Code, Nova-Chat, Galaxy-Max)
  • Model descriptions showing each AI model's strengths and use cases in the dropdown
  • Temporary chat button with dashed message icon for quick temporary conversations
  • Clean layout with left-aligned model selector and right-aligned user actions
  • User profile menu with avatar display and account management options
  • TypeScript support with comprehensive interface definitions for AI models and callbacks
  • shadcn/ui integration using Select component with grouped options and custom styling

Use Cases

This free open source React component works well for:

  • AI chat applications - Conversational AI platforms with multiple model options using Next.js
  • Code generation tools - Development platforms with specialized AI models using TypeScript
  • Creative writing platforms - Content creation tools with AI assistance using Tailwind CSS
  • Enterprise AI dashboards - Business applications with model selection and user management

API Reference

PropTypeDefaultDescription
modelsNavbar13AIModel[]defaultModelsArray of available AI models with descriptions
defaultModelstring"orion-alpha-45"Default selected AI model
userNamestring"John Doe"Display name for the user profile
userEmailstring"[email protected]"Email address for the user profile
userAvatarstringundefinedURL for user avatar image
onModelChange(model: string) => voidundefinedCallback for AI model selection changes
onTempChatClick() => voidundefinedCallback for temporary chat button clicks
onUserItemClick(item: string) => voidundefinedCallback for user menu item clicks

AI Model Interface

interface Navbar13AIModel {
  value: string;    // Unique identifier for the model
  name: string;     // Display name of the model
  description: string; // Description of model capabilities
}

Model Selection Features

  • Grouped Options - Models organized under "Models" label in the dropdown
  • Rich Descriptions - Each model shows capabilities and use cases
  • Icon Integration - Bot message square icon indicates AI functionality
  • Accessible Selection - Proper ARIA labels and keyboard navigation support

Action Integration

  • Temporary Chat - Quick access button for temporary conversations
  • User Management - Standard user profile menu with account options
  • Clean Spacing - Proper gap management between action elements
  • Responsive Design - Consistent sizing across different screen sizes

Implementation Notes

  • Uses shadcn/ui Select component with SelectGroup for organized model options
  • Model descriptions use data-desc attribute for custom styling support
  • Temporary chat button uses rounded-full styling for distinctive appearance
  • All action buttons include proper ARIA labels for accessibility
  • Model selector includes BotMessageSquare icon to indicate AI functionality
  • Compatible with shadcn/ui design system and Tailwind CSS styling framework
  • Left-aligned model selector emphasizes primary functionality
  • Right-aligned actions maintain consistent user interface patterns across navbar variations