Anchor

The Anchor component allows the user to navigate to a given URL, for example, a different view in the application.

In client-side views (TypeScript), use the standard <a> element.

const anchor = document.createElement('a');
anchor.href = 'https://vaadin.com';
anchor.textContent = 'Go to vaadin.com';

In server-side views (Java), use the Anchor component.

Anchor anchor = new Anchor("https://vaadin.com", "Go to vaadin.com");
Note
Work In Progress
The usage examples for this component are currently in progress.