Component Categories
Search Components
GlobalSearch and AnimeSearch components for discovering anime
Navigation Components
Navbar and AuthNavbar components for site navigation
Theme Components
ThemeToggle and theme system for dark/light mode support
Architecture
All components follow these patterns:Client-Side Components
All interactive components use the'use client' directive for Next.js client-side rendering:
TypeScript Interfaces
Components define clear TypeScript interfaces for props and data structures:Accessibility
Components include proper ARIA labels and keyboard navigation:aria-labelattributes for icon buttons- Keyboard shortcuts (e.g.,
/for search focus) - Focus management for modals and dropdowns
Common Patterns
Styling
Components use Tailwind CSS with custom theme colors:State Management
Local state with React hooks for component-specific data:Effects and Cleanup
Proper effect cleanup to prevent memory leaks:Import Paths
Components are located in the@/components directory:
Next Steps
Search
Learn about search components
Navigation
Explore navigation components
Theming
Implement theme switching