reusable-components

Installation
SKILL.md

Structuring Views into Components in Vaadin 25

Use the Vaadin MCP tools (search_vaadin_docs, get_component_java_api) to look up the latest documentation whenever uncertain about a specific API detail. Always set vaadin_version to "25" and ui_language to "java".

When to Extract Components

Not every view needs decomposition. Extract when you see these signals:

  • View exceeds ~200 lines — hard to navigate and reason about
  • Cohesive groups — a cluster of components that form a logical unit (e.g., a filter bar, a detail panel)
  • Repeated patterns — the same group of components appears in multiple views
  • Isolated state — a section manages its own state independently from the rest of the view

Before and After

A monolithic OrderView with filters, a grid, and a detail panel all in one class:

Installs
3
GitHub Stars
9
First Seen
Apr 3, 2026
reusable-components — vaadin/claude-plugin