views-and-navigation
OfficialCreate robust Vaadin view routing and navigation
Authorvaadin
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Simplifies creating and maintaining Vaadin 25 Java/Flow views, routes, and navigation shells so developers avoid duplicated layout code, brittle routing, and inconsistent navigation behavior across the app.
Core Features & Use Cases
- Route and view creation: Guidance for @Route, @RouteAlias, @PageTitle, and deriving paths from view names.
- Layout and app shell composition: Best practices for AppLayout, @Layout, RouterLayout, nested layouts, @ParentLayout, and @RoutePrefix to build consistent headers, drawers, and SideNavs.
- Navigation patterns: Use RouterLink for accessibility, UI.navigate for programmatic flows, the "Your Own API" pattern for centralized navigation, and MenuConfiguration/@Menu for dynamic menus.
- Parameter handling and patterns: Advice for HasUrlParameter, route templates with regex, optional and wildcard parameters, query parameter handling, and master-detail scaffolds with SplitLayout.
- Use case: Build a MainLayout with a drawer SideNav that highlights nested routes, implement a CustomerDetailView that loads by route parameter, and support list filtering via query parameters.
Quick Start
Generate a Vaadin 25 Java CustomersView at route customers and a CustomerDetailView at route customer/:customerId, implement BeforeEnterObserver for parameter loading, and add a MainLayout using AppLayout with a SideNav populated from @Menu annotations.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: views-and-navigation Download link: https://github.com/vaadin/claude-plugin/archive/main.zip#views-and-navigation Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.