vaadin-layouts

Implement Vaadin 25 HorizontalLayout and VerticalLayout with alignment and spacing.

11|3|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/vaadin/claude-plugin --skill vaadin-layouts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vaadin-layouts
Source: https://github.com/vaadin/claude-plugin/tree/main/skills/vaadin-layouts
Command: npx skills add https://github.com/vaadin/claude-plugin --skill vaadin-layouts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Vaadin layouts can be tricky: misconfigurations in spacing, padding, and flex properties lead to unstable UIs. This skill provides clear guidance to implement HorizontalLayout and VerticalLayout effectively.

Core Features & Use Cases

  • Clear guidance on using HorizontalLayout and VerticalLayout for common one-dimensional layouts like toolbars, cards, and content sections.
  • Best practices for spacing, padding, alignment, wrap, and sizing behavior in Vaadin 25.
  • Real-world scenarios showing debugging of overflow, wrapping, and responsive adjustments.

Quick Start

Create a responsive Vaadin 25 layout using HorizontalLayout to arrange header, content, and footer.

Frequently Asked Questions about vaadin-layouts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use HorizontalLayout and VerticalLayout in Vaadin 25 for view design?

HorizontalLayout and VerticalLayout in Vaadin 25 arrange components in one dimension for view design. You use them to build toolbars, cards, and content sections by managing component alignment, spacing, and padding properties.

How do I fix component alignment and spacing issues in Vaadin 25 layouts?

Fix component alignment and spacing issues by applying setJustifyContentMode and setAlignItems in your Vaadin 25 layout. Correctly configuring spacing, padding, and flex properties ensures reliable UI behavior and prevents unstable layouts.

Why does my Vaadin layout overflow or wrap unexpectedly?

Vaadin layout overflow and wrapping occur due to misconfigured sizing behavior and flex properties. Debug these responsive adjustments by checking your spacing, padding, and wrap settings within HorizontalLayout and VerticalLayout.

What is the best way to structure responsive Vaadin 25 layouts?

The best way to structure responsive Vaadin 25 layouts is using HorizontalLayout to arrange header, content, and footer sections. Properly managing size behavior and alignment ensures the view design adapts correctly across different screen sizes.

Does Vaadin 25 support flex properties for layout debugging?

Yes, Vaadin 25 supports flex properties for layout debugging. You can resolve common layout issues by adjusting setJustifyContentMode, setAlignItems, and padding to control responsive behavior and component alignment.

Can I use HorizontalLayout to create toolbars and cards in Vaadin Flow?

Yes, you can use HorizontalLayout to create toolbars and cards in Vaadin Flow applications. It provides clear guidance for one-dimensional layouts, allowing precise control over spacing, padding, and component alignment.